[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: selecting multiple attributes
From: "Ben Robb" <Ben@xxxxxxxxxx>
Date: Thu, 2 Jan 2003 13:45:03 -0000
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) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member