[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Inside the predicate it has to be 'or'. '|' correctly only means UNION not 'or', but it can be read so.
So either
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:
--
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] or predicates
Subject: Re: [xsl] or predicates From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 06 Feb 2002 16:04:40 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] or predicates, bernwardhanssen | Thread | Re: [xsl] or predicates, Jeni Tennison |
[xsl] or predicates, bernwardhanssen | Date | [xsl] Re:, Corey A. Spitzer |
Month |