[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

Subject: Re: Deleting a node depending on contents of a grandfatherattribute and a child node
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 31 Jul 2003 19:01:27 +0200
Re:  Deleting a node depending on contents of a grandfa
John Reid wrote:

I understood that I could not use variables in a template match
statement such as
<xsl:template match="absent[ancestor::player/@pword=$varpword
    and from=$vardate]"/>
Or am I missing something?

Ouch, this is correct. Some processors will accept this anyway. Well, this should be portable: <xsl:template match="absent"> <xsl:if test=ancestor::player/@pword!=$varpword or from!=$vardate)"> <xsl:copy-of select="."/> </xsl:if> </xsl:template>

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.