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

Re: XSL manipulating two XMLs

Subject: Re: XSL manipulating two XMLs
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 02 May 2002 00:50:48 +0200
xsl and trim filename
Najmi, Jamal wrote:
I am using xalan for transformation in tomcat servlet engine. I copy the
two XML files and the XSL to a directory created on the fly, import one XML
file into XSL and pass the other one via the Xalan API. Every thing shoud
work except that XSL transformer starts looking for the imported XML file
not in the currtent directory but in the TOMCAT_HOME/bin directory!!! I
tried putting ./ infront of the imported file name but no use.


Hoe can I make the transformer look into the current directory for the
included file:

It seems it actually looked into the current working directory for the process.

Here is how I am importing the XML document:

<xsl:variable name = "contentXml" select ="document('content.xml')"/>

I'm unsure what you situation you acutally have. If both the XML file passed to the transformer object and the file referenced by the document() function are in the same directory, try: <xsl:variable name = "contentXml" select ="document('content.xml',/)"/> ^^ No quotes arount the slash, it denotes the root node of the XML document you passed to the transformer object.


BTW you are supposed to trim unnecessary "original messages" from time to time.

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.