[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Variable issues


Subject: Re: [xsl] Variable issues
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 22 Dec 2008 14:39:49 +0100

Alan Bull (Local Origins) wrote:

<xsl:variable name="ThisHotelID"><xsl:value-of select="document(file/@href)/Hotel/HotelID" /></xsl:variable>
<xsl:variable name="HotelURL"><xsl:value-of select="document(file/@href)/hotels/hotel[@id='{$ThisHotelID}']/hotelurl" /></xsl:variable>

Consider to use
<xsl:variable name="ThisHotelID"
select="document(file[1]/@href)/Hotel/HotelID"/>
<xsl:variable name="HotelURL"
select="document(file[2]/@href)/hotels/hotel[@id = $ThisHotelID]/hotelurl"/>



--


	Martin Honnen
	http://JavaScript.FAQTs.com/


Current Thread