xsl-list
[Top] [All Lists]

Re: [xsl] outputting an ampersand in an attribute

2009-08-05 17:26:14
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/

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