Re: [xsl] xsl 2.0 recursive functions and return value

Subject: Re: [xsl] xsl 2.0 recursive functions and return value
From: Frans Englich <frans.englich@xxxxxxxxx>
Date: Sun, 26 Feb 2006 20:00:59 +0000
On Sunday 26 February 2006 19:44, Michael Kay wrote:
[...]

> Try:
>
> <xsl:function name="r2c:hasTextContent()" as="xs:boolean">
>   <xsl:param name="node" as="node()"/>
>   <xsl:sequence select="some $x in $node/*[not(r2c:isOutputNode(.)]
> satisfies
>      (r2c.isLeafNode($x) or r2c.hasTextContent($x))"/>

Too much Java programming there! (s/r2c.isLeafNode/r2c:isLeadNode/)


Cheers,

		Frans

Current Thread