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

selecting from multiple different node sets

Subject: selecting from multiple different node sets
From: "Zakon, Stuart" <ZakonS@xxxxxxxxxxxxxx>
Date: Fri, 18 Jun 1999 12:59:59 -0400
selecting from multiple different node sets
Hi,

If I specify a match which looks like this:

<xsl:template match="Circle|Square">
<xsl:value-of select="name"/>
</xsl:template>

And then try to select on it, I can do either one of the following and it
will work.
<xsl:apply-templates select='//Circle[@ID=normalize($target)]'/>
<xsl:apply-templates select='//Square[@ID=normalize($target)]'/>

However what I want to do is say "find me the name of EITHER the Circle or
the Square 
that has an attribute 'ID' equal to a specified value. ID is unique but I
don't
know if it is a Circle or a Square.
I am new to XSL so while it is probably easy I haven't found the solution
yet.

Thanks,
Stuart


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.