[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: length of string from a set of nodes.
This discussion helps much, thanks.
And of course, you could combine the two variables:I got an error when I tried that ??? XPTY0004: A sequence of more than one item is not allowed as the first argument of string-length() Should it work? I am using Saxon from the command line. java -jar "C:\saxon\saxon.jar ..... But when I used a combined version from Martin's suggestion with string-join. <xsl:variable name="slen" as="xs:integer" select="string-length(string-join(answers, ''))"/> It works great. Interestingly, when I put a copy of your example in, but with an unused @name. I don't get an error. I guess it only hits the error when the variable is evaluated. Michael Kay http://www.saxonica.com/
|
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
|