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

Subject: RE: [xsl] Can't use xsl:include href="char-map.xslt"
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 13:06:54 +0100
> 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/

Current Thread