Re: [xsl] counting element characters

Subject: Re: [xsl] counting element characters
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 11 Aug 2008 10:57:41 +0100
>> >   <xsl:variable name="c" as="text()*">
>> >           <xsl:for-each select="descendant::p">
>> >              <xsl:value-of  select="string-length(.)"/>
>
>> Just being pedantic, you'd probably want xs:integer* as the type
>> there instead of text()*
>
>  Right.  So you'd want also to replace xsl:value-of by xsl:sequence to
> avoid creating text nodes.

Yep - sorry was focussing on the type and missed that one...


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread