Subject: Re: [xsl] Processing XML files with entity and notation declarations From: Dan Vint <dvint@xxxxxxxxx> Date: Fri, 21 Sep 2012 22:30:03 -0700 |
<xsl:template match="DOCTYPE"> <xsl:copy-of/> </xsl:template>
Hi Dvint,
There are 2 options to copy / recreate. 1. to copy you have to use unparsed-text() function and use regex to capture the entity notation area and copy to resulting output 2. To recreate use have to use saxon:doctype. Refer this site for example. http://saxon.sourceforge.net/saxon7.9.1/extensions.html#saxon:doctype
Regards, Ganesh
On Sat, Sep 22, 2012 at 2:21 AM, David Carlisle <davidc@xxxxxxxxx> wrote: > On 21/09/2012 21:27, dvint@xxxxxxxxx wrote: >> >> I think the answer to my question (coming up) is going to be I have >> to live with it, but I was just wondering if folks had some alternate >> ideas > > > I'm not quite sure what the question is but I suspect the answer might > involve the functions unparsed-entity-uri() and > unparsed-entity-public-id() might be part of the answer. > > David > > -- > google plus: https:/profiles.google.com/d.p.carlisle
--------------------------------------------------------------------------- Danny Vint
Panoramic Photography http://www.dvint.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Processing XML files with, Ganesh Babu N | Thread | Re: [xsl] Processing XML files with, Michael Kay |
Re: [xsl] Processing XML files with, Ganesh Babu N | Date | Re: [xsl] Using barcode markup in S, Kevin Brown |
Month |