Subject: Re: [xsl] write doctype declaration and entity references to result From: "dvint dvint@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 1 Mar 2015 15:33:41 -0000 |
That is the approach I have used in the past. If nothing else, this doesn't B rely on an extension. If you don't B know the values ahead of time then this method doesn't B work. Sent on a Sprint Samsung Galaxy NoteB. II <div>-------- Original message --------</div><div>From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> </div><div>Date:03/01/2015 5:14 AM (GMT-08:00) </div><div>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx </div><div>Subject: Re: [xsl] write doctype declaration and entity references to result </div><div> </div>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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] write doctype declaration, Rick Quatro rick@xxx | Thread | [xsl] XSL-List Guidelines, B Tommie Usdin btusd |
Re: [xsl] write doctype declaration, Rick Quatro rick@xxx | Date | [xsl] XSL-List Guidelines, B Tommie Usdin btusd |
Month |