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

RE: retrieving a piece of data from a different xml file

Subject: RE: retrieving a piece of data from a different xml file
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 1 Aug 2000 20:18:51 +0100
piece of data
<xsl:variable name="locs" select="document('pagelocations.xml')">
</xsl:variable>

later

<xsl:template match="link">
	<a>
		<xsl:atribute name="href"><xsl:value-of
select="$locs/pagelocations/item[@name = @page]/location" /></xsl:attribute>
	</a>
</xsl:template>

Comes to mind but I haven't tried it.
Ciao Chris

>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric Taylor
>Sent: 01 August 2000 19:36
>To: 'XSL-List@xxxxxxxxxxxxxxxx'
>Subject: retrieving a piece of data from a different xml file
>
>
>in mainfile.XML (the one I'm primarily displaying info from), I have a tag
>like this:
>
>     <link page="B".../>
>
>in pagelocations.XML, I have something like this:
>
>     <pagelocations>
>       <item name="A" location="path\filename"/>
>       <item name="B" location="path\filename"/>
>       ...
>     </pagelocations>
>
>in my XSL, when I match <link>, I want to look in
>pagelocations.xml and find
>the item where item[@name]=@page and then use @location from that item.  I
>have no clue how to do this.  Thanks from a still-stumbling novice.  Eric
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.