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

Problem with entities and XT

Subject: Problem with entities and XT
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Wed, 16 Feb 2000 15:03:58 -0500
entity htmllat1 public
Hi,

I am having difficulties with XT and entities translation.

the orginal XML document includes entities like:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

I included a the beginning of the document a DOCTYPE so that it can be
parsed by an XML parser. The XML document is parsed OK. So far so good.

Now, I declared a doctype for the xsl:stylesheet as follow:

<!DOCTYPE xsl:stylesheet[
<!ENTITY % HTMLlat1 PUBLIC
   "-//W3C//ENTITIES Latin 1 for XHTML//EN"
   "xhtml-lat1.ent">
%HTMLlat1

<!ENTITY % HTMLsymbol PUBLIC
   "-//W3C//ENTITIES Symbols for XHTML//EN"
   "xhtml-symbol.ent">
%HTMLsymbol;

<!ENTITY % HTMLspecial PUBLIC
   "-//W3C//ENTITIES Special for XHTML//EN"
   "xhtml-special.ent">
%HTMLspecial;
]>

<xsl:stylesheet
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"
		xmlns:html="http://www.w3.org/1999/xhtml"
		version="1.0">
....
<xsl:stylesheet>

All the &nbsp; from the orginal XML document are translated by XT into
Â?Â?Â?Â?Â?Â?Â?

Hypothesis:
a) Something is wrong in my style sheet
b) James Clark embedded a joker in XT
c) there is a bug in XT
d) I am too tired and I should go to sleep :-)

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@xxxxxxxxxxxxx
Conferences: Web New York (http://www.mfweb.com)
Book: XML Pro published by Wrox Press
Products: http://www.netfolder.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.