[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: retaining entity declarations while converting fro

Subject: Re: retaining entity declarations while converting from one xml format to another
From: a kusa <akusa8@xxxxxxxxx>
Date: Fri, 18 Dec 2009 08:59:27 -0600
Re:  retaining entity declarations while converting fro
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:apply-templates select="@*|node() (except

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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.