[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xpath AndExpr on attribute values?

Subject: Re: Xpath AndExpr on attribute values?
From: "Michael Beddow" <gll6mb@xxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Jun 2000 11:21:13 +0100
xpath andexp
Jürgen Hermann wrote:

> On Tue, 6 Jun 2000 08:47:46 +0100, Michael Beddow wrote:
>
> ><xsl:apply-templates select="text/saying[@language='en'] and
> >text/saying[@topic='morals']"/>
>
> "and" works on booleans, you applied it to node-sets.
>

Ok, I'm beginning to see the point about selects working because
the empty node set counts as "false" and any populated node-set
counts as "true". But I'm not quite there yet. I need some more
help to really understand why my AndExp doesn't work when
<xsl:apply-templates select="text/saying[@language='en']"/>
does.

Or, more complexly, how can I massage the returned node-sets
from the two terms of my original expression so that I can
validly use an "and" on them and get the result I'm looking for?

Michael
-------
Michael Beddow
University of Leeds


 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.