Frank Marent wrote:
short feedback on this topic. thanks for everybody helping me. we are
now successful with the following statement that selects elements
starting with special characters (can probably be optimized but works):
<xsl:template match="*[matches(substring(text()[1], 1, 1),
'[ɐ-𘚟]')]">
I remember from the thread that the elements you where after had to be
of one character only. If this is still through, you may optimize your
regex as follows:
<xsl:template match="*[matches(., '^[ɐ-𘚟]$')]">
Meaning: from start to finish there's only one character in your
mentioned range. But are you aware that a lot of non-math characters are
included now as well? The full hiragana and katakana set, all CJK
ideographs, incl. extensions, Khmer, Ogham etc. If you don't mind that,
or if you want to treat them the same, it is of no concern Otherwise,
I'd suggest you take out the mathematical ranges as specified by W3C as
reserved for MathML. On the http://www.unicode.org/charts/ website,
there's a full list of all characters, in case you are interested.
Cheers,
Abel Braaksma
http://abelleba.metacarpus.com
--~------------------------------------------------------------------
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>
--~--