|
@@ -23,100 +23,97 @@ xmlns:set="http://exslt.org/sets">
|
|
|
<xsl:import href="esp_logging_transid.xsl"/>
|
|
|
|
|
|
<xsl:template name="WsLogServiceESPAgent" type="DefaultLoggingAgent">
|
|
|
- <xsl:param name="managerNode"/>
|
|
|
- <xsl:for-each select="$managerNode/ESPLoggingAgent">
|
|
|
- <xsl:variable name="agentName" select="@ESPLoggingAgent"/>
|
|
|
- <xsl:variable name="agentNode" select="/Environment/Software/WsLogServiceESPAgent[@name=$agentName]"/>
|
|
|
- <xsl:if test="not($agentNode)">
|
|
|
- <xsl:message terminate="yes">An WsLogService ESP Logging Agent <xsl:value-of select="$agentName"/> for <xsl:value-of select="$managerNode/@name"/> is undefined!</xsl:message>
|
|
|
+ <xsl:param name="agentName"/>
|
|
|
+ <xsl:param name="agentNode"/>
|
|
|
+ <xsl:if test="not($agentNode)">
|
|
|
+ <xsl:message terminate="yes">An WsLogService ESP Logging Agent <xsl:value-of select="$agentName"/> is undefined!</xsl:message>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:variable name="loggingServer" select="$agentNode/LoggingServer"/>
|
|
|
+ <xsl:if test="not($loggingServer)">
|
|
|
+ <xsl:message terminate="yes">ESP logging server is undefined for <xsl:value-of select="$agentName"/> </xsl:message>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:variable name="loggingServerUrl" select="$loggingServer/@Url"/>
|
|
|
+ <xsl:if test="string($loggingServerUrl) = ''">
|
|
|
+ <xsl:message terminate="yes">Logging Server URL is undefined for <xsl:value-of select="$agentName"/>!</xsl:message>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:variable name="logDataXPath" select="$agentNode/LogDataXPath"/>
|
|
|
+ <xsl:if test="not($logDataXPath)">
|
|
|
+ <xsl:message terminate="yes">Log Data XPath is undefined for <xsl:value-of select="$agentName"/> </xsl:message>
|
|
|
+ </xsl:if>
|
|
|
+
|
|
|
+ <LogAgent name="{$agentName}" type="LogAgent" services="GetTransactionSeed,UpdateLog,GetTransactionID" plugin="wslogserviceespagent">
|
|
|
+ <LoggingServer url="{$loggingServerUrl}" user="{$loggingServer/@User}" password="{$loggingServer/@Password}"/>
|
|
|
+ <xsl:if test="string($agentNode/@FailSafe) != ''">
|
|
|
+ <FailSafe><xsl:value-of select="$agentNode/@FailSafe"/></FailSafe>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($agentNode/@FailSafeLogsDir) != ''">
|
|
|
+ <FailSafeLogsDir><xsl:value-of select="$agentNode/@FailSafeLogsDir"/></FailSafeLogsDir>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($agentNode/@MaxLogQueueLength) != ''">
|
|
|
+ <MaxLogQueueLength><xsl:value-of select="$agentNode/@MaxLogQueueLength"/></MaxLogQueueLength>
|
|
|
</xsl:if>
|
|
|
- <xsl:variable name="loggingServer" select="$agentNode/LoggingServer"/>
|
|
|
- <xsl:if test="not($loggingServer)">
|
|
|
- <xsl:message terminate="yes">ESP logging server is undefined for <xsl:value-of select="$agentName"/> </xsl:message>
|
|
|
+ <xsl:if test="string($agentNode/@MaxTriesGTS) != ''">
|
|
|
+ <MaxTriesGTS><xsl:value-of select="$agentNode/@MaxTriesGTS"/></MaxTriesGTS>
|
|
|
</xsl:if>
|
|
|
- <xsl:variable name="loggingServerUrl" select="$loggingServer/@Url"/>
|
|
|
- <xsl:if test="string($loggingServerUrl) = ''">
|
|
|
- <xsl:message terminate="yes">Logging Server URL is undefined!</xsl:message>
|
|
|
+ <xsl:if test="string($agentNode/@MaxTriesRS) != ''">
|
|
|
+ <MaxTriesRS><xsl:value-of select="$agentNode/@MaxTriesRS"/></MaxTriesRS>
|
|
|
</xsl:if>
|
|
|
- <xsl:variable name="logDataXPath" select="$agentNode/LogDataXPath"/>
|
|
|
- <xsl:if test="not($logDataXPath)">
|
|
|
- <xsl:message terminate="yes">Log Data XPath is undefined for <xsl:value-of select="$agentName"/> </xsl:message>
|
|
|
+ <xsl:if test="string($agentNode/@QueueSizeSignal) != ''">
|
|
|
+ <QueueSizeSignal><xsl:value-of select="$agentNode/@QueueSizeSignal"/></QueueSizeSignal>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($agentNode/@TransactionSeedType) != ''">
|
|
|
+ <TransactionSeedType><xsl:value-of select="$agentNode/@TransactionSeedType"/></TransactionSeedType>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($agentNode/@AlternativeTransactionSeedType) != ''">
|
|
|
+ <AlternativeTransactionSeedType><xsl:value-of select="$agentNode/@AlternativeTransactionSeedType"/></AlternativeTransactionSeedType>
|
|
|
</xsl:if>
|
|
|
|
|
|
- <LogAgent name="{$agentName}" type="LogAgent" services="GetTransactionSeed,UpdateLog,GetTransactionID" plugin="wslogserviceespagent">
|
|
|
- <LoggingServer url="{$loggingServerUrl}" user="{$loggingServer/@User}" password="{$loggingServer/@Password}"/>
|
|
|
- <xsl:if test="string($agentNode/@FailSafe) != ''">
|
|
|
- <FailSafe><xsl:value-of select="$agentNode/@FailSafe"/></FailSafe>
|
|
|
+ <xsl:call-template name="EspLoggingTransactionID">
|
|
|
+ <xsl:with-param name="agentNode" select="$agentNode"/>
|
|
|
+ </xsl:call-template>
|
|
|
+
|
|
|
+ <LogDataXPath>
|
|
|
+ <xsl:if test="string($logDataXPath/@IP) != ''">
|
|
|
+ <IP><xsl:value-of select="$logDataXPath/@IP"/></IP>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@FailSafeLogsDir) != ''">
|
|
|
- <FailSafeLogsDir><xsl:value-of select="$agentNode/@FailSafeLogsDir"/></FailSafeLogsDir>
|
|
|
+ <xsl:if test="string($logDataXPath/@UserName) != ''">
|
|
|
+ <UserName><xsl:value-of select="$logDataXPath/@UserName"/></UserName>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@MaxLogQueueLength) != ''">
|
|
|
- <MaxLogQueueLength><xsl:value-of select="$agentNode/@MaxLogQueueLength"/></MaxLogQueueLength>
|
|
|
+ <xsl:if test="string($logDataXPath/@ServiceName) != ''">
|
|
|
+ <ServiceName><xsl:value-of select="$logDataXPath/@ServiceName"/></ServiceName>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@MaxTriesGTS) != ''">
|
|
|
- <MaxTriesGTS><xsl:value-of select="$agentNode/@MaxTriesGTS"/></MaxTriesGTS>
|
|
|
+ <xsl:if test="string($logDataXPath/@RecordCount) != ''">
|
|
|
+ <RecordCount><xsl:value-of select="$logDataXPath/@RecordCount"/></RecordCount>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@MaxTriesRS) != ''">
|
|
|
- <MaxTriesRS><xsl:value-of select="$agentNode/@MaxTriesRS"/></MaxTriesRS>
|
|
|
+ <xsl:if test="string($logDataXPath/@DomainName) != ''">
|
|
|
+ <DomainName><xsl:value-of select="$logDataXPath/@DomainName"/></DomainName>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@QueueSizeSignal) != ''">
|
|
|
- <QueueSizeSignal><xsl:value-of select="$agentNode/@QueueSizeSignal"/></QueueSizeSignal>
|
|
|
+ <xsl:if test="string($logDataXPath/@GUID) != ''">
|
|
|
+ <GUID><xsl:value-of select="$logDataXPath/@GUID"/></GUID>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@TransactionSeedType) != ''">
|
|
|
- <TransactionSeedType><xsl:value-of select="$agentNode/@TransactionSeedType"/></TransactionSeedType>
|
|
|
+ <xsl:if test="string($logDataXPath/@BlindLogging) != ''">
|
|
|
+ <BlindLogging><xsl:value-of select="$logDataXPath/@BlindLogging"/></BlindLogging>
|
|
|
</xsl:if>
|
|
|
- <xsl:if test="string($agentNode/@AlternativeTransactionSeedType) != ''">
|
|
|
- <AlternativeTransactionSeedType><xsl:value-of select="$agentNode/@AlternativeTransactionSeedType"/></AlternativeTransactionSeedType>
|
|
|
+ <xsl:if test="string($logDataXPath/@EncryptedLogging) != ''">
|
|
|
+ <EncryptedLogging><xsl:value-of select="$logDataXPath/@EncryptedLogging"/></EncryptedLogging>
|
|
|
</xsl:if>
|
|
|
-
|
|
|
- <xsl:call-template name="EspLoggingTransactionID">
|
|
|
- <xsl:with-param name="agentNode" select="$agentNode"/>
|
|
|
- </xsl:call-template>
|
|
|
-
|
|
|
- <LogDataXPath>
|
|
|
- <xsl:if test="string($logDataXPath/@IP) != ''">
|
|
|
- <IP><xsl:value-of select="$logDataXPath/@IP"/></IP>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@UserName) != ''">
|
|
|
- <UserName><xsl:value-of select="$logDataXPath/@UserName"/></UserName>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@ServiceName) != ''">
|
|
|
- <ServiceName><xsl:value-of select="$logDataXPath/@ServiceName"/></ServiceName>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@RecordCount) != ''">
|
|
|
- <RecordCount><xsl:value-of select="$logDataXPath/@RecordCount"/></RecordCount>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@DomainName) != ''">
|
|
|
- <DomainName><xsl:value-of select="$logDataXPath/@DomainName"/></DomainName>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@GUID) != ''">
|
|
|
- <GUID><xsl:value-of select="$logDataXPath/@GUID"/></GUID>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@BlindLogging) != ''">
|
|
|
- <BlindLogging><xsl:value-of select="$logDataXPath/@BlindLogging"/></BlindLogging>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@EncryptedLogging) != ''">
|
|
|
- <EncryptedLogging><xsl:value-of select="$logDataXPath/@EncryptedLogging"/></EncryptedLogging>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@ForwardLog) != ''">
|
|
|
- <ForwardLog><xsl:value-of select="$logDataXPath/@ForwardLog"/></ForwardLog>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@RawLogInformation) != ''">
|
|
|
- <RawLogInformation><xsl:value-of select="$logDataXPath/@RawLogInformation"/></RawLogInformation>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@CompressBlobs) != ''">
|
|
|
- <CompressBlobs><xsl:value-of select="$logDataXPath/@CompressBlobs"/></CompressBlobs>
|
|
|
- </xsl:if>
|
|
|
- <xsl:if test="string($logDataXPath/@WorkunitID) != ''">
|
|
|
- <WorkunitID><xsl:value-of select="$logDataXPath/@WorkunitID"/></WorkunitID>
|
|
|
- </xsl:if>
|
|
|
- <xsl:for-each select="$agentNode/LogInfo">
|
|
|
- <LogInfo name="{current()/@name}" valueXPath="{current()/@valueXPath}" dataXPath="{current()/@dataXPath}" multipleValue="{current()/@multipleValue}" multipleData="{current()/@multipleData}" encodeValue="{current()/@encodeValue}" encodeData="{current()/@encodeData}"/>
|
|
|
- </xsl:for-each>
|
|
|
- </LogDataXPath>
|
|
|
- </LogAgent>
|
|
|
- </xsl:for-each>
|
|
|
+ <xsl:if test="string($logDataXPath/@ForwardLog) != ''">
|
|
|
+ <ForwardLog><xsl:value-of select="$logDataXPath/@ForwardLog"/></ForwardLog>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($logDataXPath/@RawLogInformation) != ''">
|
|
|
+ <RawLogInformation><xsl:value-of select="$logDataXPath/@RawLogInformation"/></RawLogInformation>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($logDataXPath/@CompressBlobs) != ''">
|
|
|
+ <CompressBlobs><xsl:value-of select="$logDataXPath/@CompressBlobs"/></CompressBlobs>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:if test="string($logDataXPath/@WorkunitID) != ''">
|
|
|
+ <WorkunitID><xsl:value-of select="$logDataXPath/@WorkunitID"/></WorkunitID>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:for-each select="$agentNode/LogInfo">
|
|
|
+ <LogInfo name="{current()/@name}" valueXPath="{current()/@valueXPath}" dataXPath="{current()/@dataXPath}" multipleValue="{current()/@multipleValue}" multipleData="{current()/@multipleData}" encodeValue="{current()/@encodeValue}" encodeData="{current()/@encodeData}"/>
|
|
|
+ </xsl:for-each>
|
|
|
+ </LogDataXPath>
|
|
|
+ </LogAgent>
|
|
|
</xsl:template>
|
|
|
|
|
|
</xsl:stylesheet>
|