[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Calculate the average line length within variable
Alex Muir wrote:
<xsl:variable name="lines" as="element()*"> <xsl:analyze-string select="text()" regex="'"> <xsl:non-matching-substring> <xsl:element name="line"> <xsl:attribute name="length" select="string-length(normalize-space(.))"/> <xsl:attribute name="text" select="."/> </xsl:element> </xsl:non-matching-substring> </xsl:analyze-string> </xsl:variable> I don't see any code with a variable named "averageSpaceNormalizedLineLength" in your snippets above so it seems as if you have not posted the relevant code. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|