p5ant-interface.param.xsl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
  5. exclude-result-prefixes="xs"
  6. version="2.0">
  7. <!--<xsl:include href="p5ant-interface__x3A__p5CPTpm__x3A__p5xsl.param.xsl"/>-->
  8. <xsl:function name="p5ant-interface:param.if.istrue">
  9. <xsl:param name="param"/>
  10. <xsl:choose>
  11. <xsl:when test="$param='1'">
  12. <xsl:value-of select="true()"/>
  13. </xsl:when>
  14. <xsl:when test="$param='true'">
  15. <xsl:value-of select="true()"/>
  16. </xsl:when>
  17. <xsl:when test="$param='false'">
  18. <xsl:value-of select="true()"/>
  19. </xsl:when>
  20. <xsl:when test="$param='false()'"/>
  21. <xsl:when test="$param=''"/>
  22. <xsl:when test="$param='0'"/>
  23. <xsl:when test="contains($param,'${')">
  24. <xsl:message terminate="no">#20 $param <xsl:value-of select="$param"/> is propapby set uncorrectly as expected !</xsl:message>
  25. </xsl:when>
  26. <xsl:when test="string-length($param) &gt; 0 ">
  27. <xsl:value-of select="true()"/>
  28. </xsl:when>
  29. </xsl:choose>
  30. </xsl:function>
  31. <!--<xsl:function name="p5ant-interface:param.override"></xsl:function>-->
  32. </xsl:stylesheet>