[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: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 17 Oct 2020 10:45:41 -0000
Re:  tokenizing and counting with xsl:analyze-string
> I think that, as per XSLT 3.0 spec, the child content model of
xsl:matching-substring / xsl:non-matching-substring is a sequence constructor,
which would not allow xsl:analyze-string to return an atomic value (except in
a case, when the returned sequence's size is one).
>

No, that's not correct. A sequence constructor can return anything. For
example if the sequence constructor is

<xsl:sequence select="1 to 5"/>

then the value is a sequence of five integers. The containing instruction
might turn this into something else (e.g. a text node), but most instructions,
like xsl:choose or xsl:analyze-string, will leave it untouched.

Michael Kay
Saxonica

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.