This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XPath Question (correction to subject)
- To: Eric dot Smith at fruitcom dot com
- Subject: [xsl] Re: XPath Question (correction to subject)
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Mon, 24 Sep 2001 08:04:14 -0700 (PDT)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
According to Eric Smith on Mon, Sep 24, 2001 at 04:16:38PM +0200:
| I want to match all tags that have an attribute called 'surpress' whose value is
| not 'short'. So the following seems correct to me:
| <xsl:template match="sub[@surpress != 'short']">
| only problem is that it also surpresses nodes where there is no
| attribute called 'supress'
|
| How do I get all nodes to print except those with attribute
| 'supress' not equalt to 'short'?
|
| I would like to us eXPAth and not xsl:if
| also I would really like to make this a global condition if posisble
| and not set it in each Xpath expression.
|
Use:
sub[@suppress and not(@surpress = 'short')]
Cheers,
Dimitre Novatchev.
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list