Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Namespaces in Envelope + Payload -setup >Thread Next - RE: Regex for QNames Regex for QNamesTo: xmlschema-dev@--.--- Date: 2/9/2007 2:11:00 PM
Hi
I need the regular expression for a QName. From §F.1 Character
Classes [WXS-2] (http://www.w3.org/TR/xmlschema-2/#charcter-classes),
I thought the following would be correct:
[\i-:][\c-:]*:[\i-:][\c-:]*
But the following example results in an error with Saxon 8 (I need
this regex for an XSLT 2.0 stylesheet, the XSLT 2.0 REC point to XML
Schema for regexs):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:template match="/" name="main">
<res r="{ matches('pr:local', '[\i-:][\c-:]*:[\i-:][\c-:]*') }"/>
</xsl:template>
</xsl:stylesheet>
$ saxon -it main qnames-regex.xsl
Error on line 5 of qnames-regex.xsl:
FORX0002: Error at character 5 in regular expression
"[\i-:][\c-:]*:[\i-:][\c-:]*": multi_range
Failed to compile stylesheet. 1 error detected.
Does someone see what I did wrong?
Regards,
--drkm
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
From mike@s... Fri Feb 09 12:38:25 2007
Received: from lisa.w3.org ([128.30.52.41])
b | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
