xsl-list
[Top] [All Lists]

RE: [xsl] ∈ is not ∈...?

2006-10-19 09:28:37
What does

<xsl:value-of select="string-to-codepoints(Body)"/>

give you?

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Frank Marent [mailto:frank(_dot_)marent(_at_)emnemics(_dot_)ch] 
Sent: 19 October 2006 16:44
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] &isin; is not &#x02208;...?

hi all
(hi david!)

we encounter a strange behaviour with the &isin; entity 
reference. we can not match this entity. let's say you have 
an xml file

   <Body>&isin;</Body>

and you're searching by xpath with

   //text()[string-to-codepoints(.)[1]=8712]

explanation: we're searching 8712 because &isin; is &#x02208 (http://
www.w3.org/TR/MathML2/bycodes.html) and 2208 is decimal 8712.

but there is no match with that expression. we tried by xslt 
with saxon 8.7.3J on windows xp and by oxygen 7.2 on windows 
xp with direct xpath match - &isin; is not catched. when 
changing &isin; to

   <Body>&Element;</Body>

(which should be the same character reference) then the xpath 
matches. we have strange results working with &isin; and no 
idea what the problem may be.

frank

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--