|
Subject: Re: [xsl] xslt 2.0 regex From: "Tony Graham" <tgraham@xxxxxxxxxx> Date: Sat, 17 Mar 2012 17:26:29 -0000 (GMT) |
On Sat, March 17, 2012 4:43 pm, davep wrote:
> On 17/03/12 16:29, Tony Graham wrote:
>> On Sat, March 17, 2012 4:14 pm, davep wrote:
>> ...
>>> It's still not working
>>>
>>> <xsl:variable name="NameStartChar.re" as="xs:string">
>>> $[A-Z]|_|[a-z] |
>>> [À-Ö] | [Ø-ö] |
>>> [ø-˿] | [Ͱ-ͽ] |
>>> [Ϳ-῿] | [‌-‍] |
>>> [⁰-↏] | [Ⰰ-⿯] |
>>> [、-퟿] | [豈-﷏] |
>>> [ﷰ-�] | [𐀀-]
>>> </xsl:variable>
>>>
>>> <xsl:variable name="NameChar.re" as="xs:string"
>>> select="concat($NameStartChar.re,' |
>>> - | \. | [0-9] |· | [̀-ͯ] |
>>> [‿-⁀]')"/>
>>>
>>>
>>> <xsl:variable name='Name.re'
>>> select='concat($NameStartChar.re,
>>> "(", $NameChar.re,")*")'/>
>>
>> Why not use '\i' and '\c' from
>> http://www.w3.org/TR/xmlschema-2/#charcter-classes?
>
> For which range please Tony? Err....
>
> \i includes : which is wrong?
> \c looks good though! Ah no. Again it's NameChar from
> http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-NameChar
> which is more than allowed for xsl:variable @name?
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xslt 2.0 regex, davep | Thread | Re: [xsl] xslt 2.0 regex, Brandon Ibach |
| Re: [xsl] xslt 2.0 regex, davep | Date | Re: [xsl] xslt 2.0 regex, Brandon Ibach |
| Month |