Re: tokenizing and counting with xsl:analyze-string

"Mukul Gandhi [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
On Sat, Oct 17, 2020 at 4:27 PM Mukul Gandhi [email protected] <
[email protected]> wrote:

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

I find this strange.

With context to my example, if 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), why declaring like xsl:variable name="temp_result"
as="xs:string" work similarly (isn't using as="xs:string" a stronger signal
to the XSLT processor, to maintain the variable's value as string, and
presenting this string to a function expecting xs:string value fine)?

I'm using Saxon EE 10.2 as an XSLT 3.0 processor.



-- 
Regards,
Mukul Gandhi
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.