xsl-list
[Top] [All Lists]

RE: Can't use xsl:include href="char-map.xslt"

2005-09-22 05:06:54

Sorry if my question is confusing, my bad :D. The
problem really was the char-map.xslt was not loading
into the main xsl file. Here is the char-map.xslt
file:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:character-map name="charmap">
<xsl:output-character character="ü" string="&uuml;"/>

This isn't well-formed XML. You can't refer to entities unless you first
declare them.

<xsl:output-character character="&#966;"
string="&#966;"/>

Why are you mapping a character to itself? It just gives the serializer a
lot more work to do.
Perhaps you meant

<xsl:output-character character="&#966;"
string="&amp;#966;"/>

which would cause the serializer to output & # 9 6 6 ; (6 characters)

But even if that's what you want, wouldn't it be just as good to specify
<xsl:output encoding="us-ascii">?

Michael Kay
http://www.saxonica.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>
--~--