xsl-list
[Top] [All Lists]

Re: Move one node in xml down one level

2005-02-08 08:44:59
Tempore 16:30:47, die 02/08/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Sian Mace <sianmace(_at_)hotmail(_dot_)com>:

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>