[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: outputting an ampersand in an attribute
From: Liam Quin <liam@xxxxxx>
Date: Wed, 5 Aug 2009 17:25:43 -0400
On Wed, Aug 05, 2009 at 01:59:42PM -0700, tom a wrote:
> I am generating svg documents and would like to output an element like:
> 
> <glyph unicode="&#xE003;" horiz-adv-x="833" d="M124,348L124,249L709,249L709,348L124,348 Z"/>

Why not just have &#xE003; in your input?
Or, code-points-to-string(57347) (the decimal version of xE003)

Make your output encoding be iso-8859-1 or even us-ascii to force
the XSLT processor to generate numeric character references.

Liam


-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member