Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Entity references in xml output

From: Kay Michael <Michael.Kay@------->
To:
Date: 3/2/2000 7:37:00 PM
> 
> My letter wasn't clear enough, I think. I would like to do the
> following:

No, my reply wasn't clear enough. I understand exactly what you want, and at
present in XSLT you can't have it, because the processing model is that
entity references are expanded before the source tree is built, so they
aren't visible as an input to the transformation. And because the tree model
is symmetric, entities cannot be placed on the result tree either.

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

Whether you get entity references or not in HTML output is entirely at the
discretion of the XSLT processor. However, they won't be directly related to
any use of entities in the source file. For example &apos; may become ' and
' may become &apos;.

In Saxon 5.2, I generate entity references in HTML output for characters in
the range 160 to 255. This is very arbitrary but it seems to keep a lot of
people (especially Western Europeans) content.

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

Declaring entities doesn't make any difference, I'm afraid. The XSLT
processor won't see them.

Regards,

Mike Kay 


 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