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

Select with multiple conditions?

Subject: Select with multiple conditions?
From: "Michele R Combs mrrothen@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 8 Dec 2021 14:53:28 -0000
 Select with multiple conditions?
All three of these constructions appear to be valid (this is xsl 1.0, sorry
for being antiquated!).  Will there be differences in the output?  If not, is
one option "better" than the others, and if so why?  I'm guessing that there
are no differences in output, and that option 3 is better because more
concise.  Am I right?


"or" statements in the select condition:

<xsl:for-each select="child::*[@level = 'collection']  | child::*[@level =
'recordgrp']  | child::*[@level = 'series'] | child::*[@level =
'subseries']">

"or" statements inside the node description [ ]

<xsl:for-each select="child::*[@level = 'collection' | @level = 'recordgrp' |
@level = 'series' | @level = 'subseries']">

"or" statements inside the attribute match

<xsl:for-each select="child::*[@level = 'collection' | 'recordgrp' | 'series'
| 'subseries']">


Michele
+++++++++
Michele Combs | Lead Archivist
Special Collections Research Center
Visit our blog! library-blog.syr.edu/scrc/<http://library-blog.syr.edu/scrc/>
Syracuse University Libraries
222 Waverly Ave
Syracuse, New York 13244
t 315.443-2081 | e mrrothen@xxxxxxx<mailto:mrrothen@xxxxxxx> | w scrc.syr.edu
SYRACUSE UNIVERSITY
syr.edu

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.