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?
Otherwise, you may want '(' and ')' around $NameStartChar.re in $Name.re,
otherwise (to mix variable expansions) it looks like
'...|[‿-⁀]($NameChar.re)*" and you'll only match
multi-character names when they begin with a character in the range
[‿-⁀].
Regards,
Tony Graham tgraham(_at_)mentea(_dot_)net
Consultant http://www.mentea.net
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL-FO and XSLT consulting, training and programming
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--