Re: tokenizing and counting with xsl:analyze-string

"Michael Kay [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
> 
> 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
--~----------------------------------------------------------------
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.