Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Including entity info in head of stylesheet

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 11/7/2005 2:50:00 PM

AndrewF wrote:


> Something that has come up is that we have had to define a bunch of
> different entities which are are doing at the top of the XSL doc where
> it is needed - thus:
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
>         <!ENTITY copy "&#169;">
>         <!-- copyright symbol -->
>         <!ENTITY infin "&#8734;">
>         <!-- infinity symbol -->
>         <!ENTITY nbsp "&#160;">
>         <!-- space -->
> ]>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:fo="http://www.w3.org/1999/XSL/Format">

Those entities are then defined inside of the XSLT stylesheet but don't 
expect the XSLT processor to use such entities when it serializes a 
transformation result. It will simply output the entity replacement 
characters or perhaps numeric character references.

If you want to have a DOCTYPE delcaration in the transformation result 
then use
   <xsl:output
     method="xml"
     doctype-public="public identifier goes here"
     doctype-system="system identifier goes here" />





-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
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