[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ∈ is not ∈...?

Subject: Re: ∈ is not ∈...?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Oct 2006 17:55:21 +0100
bycodes html
> http://www.w3.org/TR/MathML2/bycodes.html)
It doesn't of course matter what that file says isin is defined to be
(as the XML parser doesn't read the spec) what matters is what the
dtd you are using says isin is defined to be.

Now bycodes.html and the dtd are both generated from unicode.xml by XSLT
(using saxon6 as it happens) so that they should be consistent, but
unicode.xml has a long history (at least 8 years) so that doesn't
guarantee that every version of bycodes.html ever generated is
consistent with every version of the DTD.  Although I don't recall any
changes to isin, and the current version of the dtd does define it to be 8712.

Just look in your dtd to see what it is defined to be, or just do
<xsl:value-of select="Body"/>
and see what character is in the input.

Incidentally why use string-to-codepoints rather than just testing the
string?
text()[string-to-codepoints(.)[1]=8712]
is just a long way of writing
text()[.='&#8712;']


David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.