[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] retaining entity declarations while converting from one xml format to another


Subject: Re: [xsl] retaining entity declarations while converting from one xml format to another
From: Ganesh Babu N <nbabuganesh@xxxxxxxxx>
Date: Mon, 21 Dec 2009 16:20:30 +0530

Please let me know your image tagging in the INPUT file.

based on the we can write a XSL to generate the ENTITY declarations in
doctype using saxon:doctype

Regards,
Ganesh


On Fri, Dec 18, 2009 at 8:29 PM, a kusa <akusa8@xxxxxxxxx> wrote:
> Hi David:
>
> My input file looks like this: I actually have tif files.
>
> <!DOCTYPE example[
> <!ENTITY  t1 SYSTEM "image.tif" NDATA ccitt4">
> ]>
>
> Here is what I am trying to do. Before transforming this XML into
> another XML document, I need to get rid of a few elements. So I am
> doing some preprocessing of the data using an XSLT again. That is what
> I am trying to do in this template:
>
> <xsl:template match="@*|node()">
>               <xsl:copy>
>                       <xsl:apply-templates select="@*|node() (except
rev1)"/>
>               </xsl:copy>
>       </xsl:template>
>
> This works as far as deleting those nodes. But in the process Iose the
> entity declarations - DOCTYPE example-in my output.
>
> I need to retain those in my intermediate output.
>
> Please let me know if the problem is a little more clear now.
>
> On Thu, Dec 17, 2009 at 4:32 PM, David Carlisle <davidc@xxxxxxxxx> wrote:
>>
>>
>>> I am having no luck with this issue. I really need to retain those
>>> entities during transformation.  Can anybody help me here?
>>
>> you still haven't shown  any sample input. Your original post showed a
>> SYSTEM external entity to a jpeg file. That could not be referenced from
>> XML without causing a parse error, so presumably your actual input is
>> different.  The list guildelines sugest posting a small but complete
>> sample input and the desired output.
>>
>> David
>>
>>
>> ________________________________________________________________________
>> The Numerical Algorithms Group Ltd is a company registered in England
>> and Wales with company number 1249803. The registered office is:
>> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>>
>> This e-mail has been scanned for all viruses by Star. The service is
>> powered by MessageLabs.
>> ________________________________________________________________________


Current Thread
Keywords