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

Re: [xsl] Move one node in xml down one level


Subject: Re: [xsl] Move one node in xml down one level
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 08 Feb 2005 16:44:59 +0100

Tempore 16:30:47, die 02/08/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Sian Mace <sianmace@xxxxxxxxxxx>:

But the crutial part is that
<asin><xsl:value-of select="parent::amazon:ASIN"/></asin>
the above line doesnt get the value, its blank
Please help

the 'ASIN' element is not a parent of context node. Try: <asin><xsl:value-of select="parent::Item/amazon:ASIN"/></asin> or <asin><xsl:value-of select="preceding-sibling::amazon:ASIN"/></asin>

regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Gaudiam omnibus traderat W3C, nec vana fides


Current Thread