Subject: Re: counting element characters
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Mon, 11 Aug 2008 11:41:38 +0200 (CEST)
|
Andrew Welch wrote:
> > <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.
Regards,
--drkm
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
|