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

Subject: Re: [xsl] write doctype declaration and entity references to result
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Mar 2015 13:09:39 -0000
> 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