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

Extract input filename

Subject: Extract input filename
From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Thu, 17 May 2007 12:58:01 +0530
 Extract input filename
Dear Friends-
I have no idea about to extract input filename by passing argument in command line. In the below examples, I don't want to hardcode "input_meta.xml".


Input files
1. input.xml
2. input_meta.xml

command line
java -jar saxon8.jar input.xml x.xsl >c.xml

Stylesheet
<xsl:variable name="filename" select="document('input_meta.xml')" />
<xsl:template match="/">
	<doi>
      <xsl:copy-of select="$filename/doi/text()" />
	</doi>
</xsl:template>

Thanks in advance.
JSR

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.