[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
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|