OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Please help with predicate problem

[ Lists Home | Date Index | Thread Index ]



> -----Original Message-----
> From: Julien Martin [mailto:balteo@yahoo.fr]
> Sent: 26 September 2002 15:03
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS