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

collection issue, update/rename file

Subject: collection issue, update/rename file
From: davep@xxxxxxxxxxxxx
Date: Wed, 29 Feb 2012 11:02:19 -0000
 collection issue
input a directory full of .xml files

running a transform to modify one element, identity
transform for the rest.

(Yes, I have created a backup)

I want to
process A.xml, write out A.xml ... somehow
(no I'm not on Linux to make it easy)

I'm using
  <xsl:for-each select="collection('file:///Long-path?select=*.xml')">
  <xsl:result-document
	href="???"
	method="xml"
	encoding="utf-8"
       indent="yes">

	<xsl:apply-templates/>


base-uri(.) returns the full pathname of the source document?
Do I have to work with that to obtain A.xml?
 (text processing....)
Is there some way I can obtain the filename.extn?

TIA Dave

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.