[Home] [By Thread] [By Date] [Recent Entries]




> -----Original Message-----
> From: Julien Martin [mailto:balteo@y...]
> Sent: 26 September 2002 15:03
> To: xml-dev@l...
> Subject:  Please help with predicate problem
>
>
> Hello,
>
> I am trying to use an OR predicate as follows:
>
> ******************************
> /liste-citations/citation[@id='2' | @id='1']
> ******************************
>
> In other words, I want to select all citation elements
> having the attribute '1' OR '2'.
>

/liste-citations/citation[@id='2' or @id='1']

notice the word 'or' ....

almost painfully simple no ? the | seperator is a union operator in XSLT
/XPATH btw

gl, jim fuller


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member