Re: [xsl] write doctype declaration and entity references to result

Subject: Re: [xsl] write doctype declaration and entity references to result
From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Mar 2015 13:14:30 -0000
Thanks for the quick reply Michael. I found this:

http://www.dpawson.co.uk/xsl/sect2/N2281.html#d3805e19

Are there any reasons why I shouldn't use this method versus the extensions
you recommended? Thank you.

-----Original Message-----
From: Michael Kay mike@xxxxxxxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] 
Sent: Sunday, March 01, 2015 8:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] write doctype declaration and entity references to result

> 
> I need to write a doctype declaration with some entity references to 
> my result document. This information is NOT in my source document. Is 
> there a mechanism for doing this in an XSLT 2.0 stylesheet?

No there isn't. You could consider the saxon:doctype extension instruction,
or Andrew Welch's LexEv.

Michael Kay
Saxonica


> An example might be:
> 
> <!DOCTYPE myDoc [
> <!ENTITY myLogo SYSTEM "images/myLogo.svg" NDATA svg> ]>
> 
> Thanks in advance.
> 
> Rick Quatro
> Carmen Publishing Inc.
> 585-366-4017
> rick@xxxxxxxxxxxxxxx

Current Thread