[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.