This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Select a node in another xml-document
- From: Mukul dot Mudgal at etindia dot com
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 27 May 2002 14:29:08 +0530
- Subject: Re: [xsl] Select a node in another xml-document
- Reply-to: xsl-list at lists dot mulberrytech dot com
Try to select file like this and then use this variable to traverse the
selected document.
<xsl:variable name="Select.Document.DatabaseMapping.xml" select
="document('DatabaseMapping.xml')"/>
In this DatabaseMapping.xml could be your secondary XML file,
Mukul
"Pfitzner, Jan"
<Jan.Pfitzner@hdi.de> To: "Xsl-List (E-Mail)" <xsl-list@lists.mulberrytech.com>
Sent by: cc:
owner-xsl-list@lists.mulbe Subject: [xsl] Select a node in another xml-document
rrytech.com
05/27/2002 01:01 PM
Please respond to xsl-list
Hi,
I´ve a xsl-stylesheet for a xml-document. In this stylesheet I want to
adapt an template to another xml-file.
How can I make this.
the xml-file I want to adapt to is like this:
<Colors>
<Color>red</Color>
<Color>blue</Color>
<Color>green</Color>
...
</Colors>
And I want to select the first Color-node
I've tried tu use the document()-function, but I didn't manage it.
Thanks
Jan Pfitzner
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list