Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Entity references in xml output

From: Claudio Sacerdoti Coen <sacerdot@-------------------->
To:
Date: 3/2/2000 7:40:00 PM
On Thu, Mar 02, 2000 at 18:23:27 +0100, Zsolt Czinkos wrote:
>... 
> My letter wasn't clear enough, I think.

It was clear, but I partly misunderstood it.

> 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.
> ------------------------------

Using <xsl:text disable-output-escaping> you can have entities in output...
but only if you create them from scratch in the stylesheet, not if they
are yet in the source document. So you are almost right:

 1) If you must create entities from scratch use
    <xsl:text disable-output-escaping>
 2) If you must preserve input entities then I think there is really
    no standard solution ;-(  (But I hope I hadn't reason!)
    Some processors ouput the entities (eg. using cocoon the "&#...;"
    that stands for MathML's "&Lambda;" is mapped to "&Lambda;"), some
    do not.

>... 

					Sorry for the insufficient help,
						  C.S.C.

-- 
-----------------------------------------
Real Name: Claudio Sacerdoti Coen
Address: via del Colle n.6
	 S. Lazzaro di Savena (BO)
	 Italy
e-mail:  sacerdot@xxxxxxxxxxx
-----------------------------------------


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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent