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

Re: Entity references in xml output

Subject: Re: Entity references in xml output
From: Zsolt Czinkos <czinkos@xxxxxxxxxxx>
Date: Thu, 02 Mar 2000 18:23:27 +0100
xml output entities
Kay Michael wrote:
> 
> > <xsl:text disable-output-escaping="yes"> &amp;eacute; </sxl:text>
> >
> > But I have not found yet any implementation supporting that!!!
> 
> Saxon supports disable-output-escaping. It is a hack; but it is also the
> only way of inserting entity references (or certain other things) in the
> output file. I don't really approve of doing that for individual characters,
> but for mroe substantial things it can be useful.
> 
> Mike Kay

Hello,

My letter wasn't clear enough, I think. I would like to do the
following:

1. From source:

<?xml version="1.0"?>
<!DOCTYPE articles [
	<!ENTITY % characters SYSTEM "entities/chars.ent">
	%characters;
]>
<articles date="2000-02-22">
<article>
	<title>Blah blah blah &eacute; bla &odblac; ...</title>
	<body>Blah again and again and &bdquo; &myentity;</body>
</article>
</articles>

2. With an XSLT transformation

3. get the following :

<?xml version="1.0"?>
<!DOCTYPE daily [
	<!ENTITY % characters SYSTEM "entities/chars.ent">
	%characters;
]>
<daily date="2000-02-22">
<article2>
	<title2>Blah blah blah &eacute; bla &odblac; ...</title2>
	<body2>Blah again and again and &bdquo; &myentity;</body2>
</article2>
</daily>


So, I'd like to have entities in output.
------------------------------

When I use the <xsl:output method="html"/> then some entities are good
some are not. But I want to use the xml output.

Is there a way to solve this without declaring entities like <!ENTITY
eacute "&eacute;">?

I think <xsl:text disable-output-escaping> isn't the solution, because
I'd need something like:
<xsl:text><xsl:apply-templates/></xsl:text>, which isn
't correct.

Regards,

zsolt


 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.