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

Copy an XML file as it is while modifing few specific

Subject: Copy an XML file as it is while modifing few specific tags
From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx>
Date: Thu, 25 Aug 2005 15:04:11 +0100
copy xml file
Hello,

I have an interesting situation I can't solve on my own.


Story so far:

An input file is generated and sent to the main XSLT template. This
template imports about 7 other templates and generates an XML output
depending on the conditions given in the input file.

Thereafter a second template called Header generates some text and wraps
the content of the output before into a new TEXT output file.

This is done by a plain

Text bla bla
blabla

<xsl:copy-of select="*"/>.
blabla



Challenge:

I can't copy the entire document 1:1 like before. I have to copy
everything but 6 specific tags, which need an adjustment.

The problem is now, since the header template should be generic. It will
never now what kind of document it is actually wrapping. So the
structure of the input is unknown to this template.

But then how do I copy everything 1:1 but those 6 tags to modify them as
needed?

Let's try to summarize the whole situation above into one sentence:
How do I copy an XML document of unknown depth as it is but modify few
specific tags in it?

Any ideas?
Thanks
Houman

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.