[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: tokenizing and counting with xsl:analyze-string

Subject: Re: tokenizing and counting with xsl:analyze-string
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 17 Oct 2020 17:15:02 -0000
Re:  tokenizing and counting with xsl:analyze-string
Am 17.10.2020 um 15:53 schrieb Mukul Gandhi gandhi.mukul@xxxxxxxxx:
On Sat, Oct 17, 2020 at 4:27 PM Mukul Gandhi gandhi.mukul@xxxxxxxxx
<mailto:gandhi.mukul@xxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:

    With above mentioned XSLT stylesheet, the thing that worked is, not
    explicitly declaring the type forB xsl:variable name="temp_result".

I find this strange.

With context to my example, ifB xsl:variable name="temp_result" without
an explicit type declaration on the variable, presents the result of
this variable as string (and string-length(translate(... working fine on
such a variable),

Without having any "as" attribute your variable is a document fragment node containing the content constructed by the sequence constructor; of course if you use functions like "translate" expecting a string value the string value of the document fragment (which is the concatenation of the string value(s) of all child nodes) is being used.

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.