Project

Profile

Help

Bug #1639 ยป bytecode.xsl

Max Zhaloba, 2012-10-26 17:28

 
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:t="test">


<xsl:template match="/">
<xsl:message>
value: "<xsl:value-of select="t:f1(())"/>"
</xsl:message>
</xsl:template>


<xsl:function name="t:f1" as="xs:boolean">
<xsl:param name="empty" as="xs:string?"/>

<xsl:sequence select="not($empty = t:f2(0))"/>
</xsl:function>


<xsl:function name="t:f2" as="xs:string">
<xsl:param name="item" as="item()"/>

<xsl:sequence select="t:f3()"/>
</xsl:function>


<xsl:function name="t:f3" as="item()?">
<xsl:sequence select="()"/>
</xsl:function>


</xsl:stylesheet>
    (1-1/1)