xsl-list
[Top] [All Lists]

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

2009-12-18 09:59:54
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(_at_)nag(_dot_)co(_dot_)uk> 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.
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>