Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL Using AND/OR

Status
Not open for further replies.

Silvinho

Programmer
Jul 9, 2001
58
0
0
GB
Im new to xml/xsl and i wanted to know if is posible to filter a for each query on more than one field like SQL using AND/OR values.

ie: in SQL you could write:
WHERE Country = 'France' AND Price > 30

but in xsl i cant see how to do a similar thing:
<xsl:for-each select="/PRODUCT/RECORD[AUTHOR='Test']">

Im not even sure if it is possible and if it is i cant seem to find anyhing about it???

Any help would be appreciated.
 
Imagine this data base.
[tt]
<xsl:for-each select="/PRODUCT/RECORD[@AUTHOR='Sartre' [highlight]or[/highlight] @CLASSIFICATION='Existentialism'][highlight]|[/highlight]/PRODUCT/RECORD[@SUBJECT='Drama' [highlight]and[/highlight] number(@PRICE) &lt; 20]">
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top