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

RE: selecting multiple attributes

Subject: RE: selecting multiple attributes
From: "Ben Robb" <Ben@xxxxxxxxxx>
Date: Thu, 2 Jan 2003 13:45:03 -0000
xsl element check multiple attributes
Try "and"

E.g. <xsl:template match="sect1[@lang = 'ger' and @id = 'news']">

Note also that it is not permitted to have a VariableReference in your
match attribute for the <xsl:template> element. This is to prevent
circular references.

Rgs,

Ben

-----Original Message-----
From: Hubert Holtz [mailto:Turnhose_alt@xxxxxxx] 
Sent: 02 January 2003 13:29
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  selecting multiple attributes


Hy,

how can I check an element for more than one attribute?

Example:

--- code -------

<sect1 id="news" lang="ger">


-------------------

I only know how to slect one : <xsl:template match="sect1[@lang=
$lang]"> 
but is there something like an logical and?

Thanks

Homer30


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


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


Current Thread
  • XSLT2 tools, (continued)
        • Laura - Thu, 2 Jan 2003 13:04:16 -0500 (EST)
        • Michael Kay - Fri, 3 Jan 2003 06:34:32 -0500 (EST)
        • Mike Brown - Thu, 2 Jan 2003 13:38:27 -0500 (EST)
        • Wendell Piez - Thu, 2 Jan 2003 14:35:07 -0500 (EST)
    • Ben Robb - Thu, 2 Jan 2003 08:45:14 -0500 (EST) <=

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.