| 1234567891011121314151617181920212223242526272829303132 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:function name="p5ant-interface:param.if.istrue">
- <xsl:param name="param"/>
- <xsl:choose>
- <xsl:when test="$param='1'">
- <xsl:value-of select="true()"/>
- </xsl:when>
- <xsl:when test="$param='true'">
- <xsl:value-of select="true()"/>
- </xsl:when>
- <xsl:when test="$param='false'">
- <xsl:value-of select="true()"/>
- </xsl:when>
- <xsl:when test="$param='false()'"/>
- <xsl:when test="$param=''"/>
- <xsl:when test="$param='0'"/>
- <xsl:when test="contains($param,'${')">
- <xsl:message terminate="yes">#20 $param <xsl:value-of select="$param"/> is propapby set uncorrectly as expected !</xsl:message>
- </xsl:when>
- <xsl:when test="string-length($param) > 0 ">
- <xsl:value-of select="true()"/>
- </xsl:when>
- </xsl:choose>
- </xsl:function>
-
- </xsl:stylesheet>
|