Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy an XML file using XSL?

Status
Not open for further replies.

stroudmw

Vendor
Dec 4, 2008
1
0
0
ZA
I have an XML file that contains information about Parts and BOMS. I need to copy the file (in its entirety) to two different locations. Can I use XSL to do this? If so, how?
 
If xslt 2.0 processor is at your disposal, use xsl:result-document element to control the output.
The documentation:
Practical articles on its elements, such as this:

In xslt 1.0, probably processing multiple time is the better solution than venturing into extensions, particularly if the whole process is under the auspices of some script/application.
 
It is extremely inefficient to use an XSLT processor just to copy a file. I suggest you just use the underlying operating system copy file command or API.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top