Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Including entity info in head of stylesheet >Thread Next - Re: Including entity info in head of stylesheet Re: Including entity info in head of stylesheetTo: 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 "©"> > <!-- copyright symbol --> > <!ENTITY infin "∞"> > <!-- infinity symbol --> > <!ENTITY nbsp " "> > <!-- 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
