|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Deleting a node depending on contents of a grandfa
John Reid wrote:
...i have tried a number of approaches but with various but not correct results. I want to delete the absent node (and everything below it) where $vardate = from and @pword $varpword. <xsl:variable name="pword" select="ancestor::@pword"/> Wont select anything, ever. Try
<xsl:variable name="pword" select="ancestor::player[1]/@pword"/>
or if the player node is always the grandfather
<xsl:variable name="pword" select="../../@pword"/>
J.Pietschmann 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
|

Cart








