[XOM-interest] entity in attribute value
Luca Passani
passani at eunet.no
Mon Jan 12 11:21:51 EST 2009
Elliotte Harold wrote:
>
> Use a numeric character reference or the actual character.
>
> Without a DTD how would you expect the XML parser to know what €
> represents?
so, here is my problem. Some mobile devices will understand the €
entity some won't. So I want to use WURFL to serve the right "string" to
each device. The string may be "EUR", "Euros" or "€".
As far as I am concerned, I want WURFL to consider "€" just like
any other string. What's the XML way to escape it?
I tried this, but it doesn't work:
<capability name="entity_euro" value="<![CDATA[€]]>"/>
I could work it around by creating a micro expression language of some kind:
<capability name="entity_euro" value="ampersand_euro;"/>
but this does not seem to elegant.
Thanks
Luca
More information about the XOM-interest
mailing list