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

Re: or predicates

Subject: Re: or predicates
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 06 Feb 2002 16:04:40 +0100
inside the predicate
Inside the predicate it has to be 'or'. '|' correctly only means UNION not 'or', but it can be read so.

So either

"doc[N1='xxx' or N2='yyy']"
all <doc>, which have <N1> as child with value 'xxx' or <N2> with 'yyy'

or

"doc[N1='xxx'] | doc[N2='yyy']"
all <doc>, which have <N1> with 'xxx', united with all <doc>, which have <N2> with 'yyy'
If a node fulfills both predicates it is only once in the nodeset too, because one node can not occure twice in a nodeset.


I hope it is to understand - or Jeni must help.

Regards,

Joerg

bernwardhanssen@xxxxxx wrote:

Hi

I try to put a | inside a predicate but it doesn't work.
<xsl:apply-templates select="doc[N1='xxx' | N2='yyy']"/>

Putting | outside the predicate works. <xsl:apply-templates select="doc[N1='xxx'] | doc[N2='yyy']"/>

Why is there a difference?

regards

Bernward


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7411
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


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.