esp_logging_agent_basic.xsl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ################################################################################
  4. # HPCC SYSTEMS software Copyright (C) 2019 HPCC Systems®.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. ################################################################################
  18. -->
  19. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="default"
  20. xmlns:set="http://exslt.org/sets" exclude-result-prefixes="set">
  21. <xsl:template name="EspLoggingAgentBasic">
  22. <xsl:param name="agentNode"/>
  23. <xsl:if test="string($agentNode/@FailSafe) != ''">
  24. <FailSafe><xsl:value-of select="$agentNode/@FailSafe"/></FailSafe>
  25. </xsl:if>
  26. <xsl:if test="string($agentNode/@FailSafeLogsDir) != ''">
  27. <FailSafeLogsDir><xsl:value-of select="$agentNode/@FailSafeLogsDir"/></FailSafeLogsDir>
  28. </xsl:if>
  29. <xsl:if test="string($agentNode/@MaxLogQueueLength) != ''">
  30. <MaxLogQueueLength><xsl:value-of select="$agentNode/@MaxLogQueueLength"/></MaxLogQueueLength>
  31. </xsl:if>
  32. <xsl:if test="string($agentNode/@MaxTriesGTS) != ''">
  33. <MaxTriesGTS><xsl:value-of select="$agentNode/@MaxTriesGTS"/></MaxTriesGTS>
  34. </xsl:if>
  35. <xsl:if test="string($agentNode/@MaxTriesRS) != ''">
  36. <MaxTriesRS><xsl:value-of select="$agentNode/@MaxTriesRS"/></MaxTriesRS>
  37. </xsl:if>
  38. <xsl:if test="string($agentNode/@QueueSizeSignal) != ''">
  39. <QueueSizeSignal><xsl:value-of select="$agentNode/@QueueSizeSignal"/></QueueSizeSignal>
  40. </xsl:if>
  41. <xsl:if test="string($agentNode/@SafeRolloverThreshold) != ''">
  42. <SafeRolloverThreshold><xsl:value-of select="$agentNode/@SafeRolloverThreshold"/></SafeRolloverThreshold>
  43. </xsl:if>
  44. </xsl:template>
  45. </xsl:stylesheet>