Re: [xsl] selecting multiple attributes

Subject: Re: [xsl] selecting multiple attributes
From: Joerg Pietschmann <j3322ptm@xxxxxxxx>
Date: Thu, 2 Jan 2003 14:44:19 +0100
On Thursday 02 January 2003 14:28, Hubert Holtz wrote:
> how can I check an element for more than one attribute?
...
> I only know how to slect one : <xsl:template match="sect1[@lang= $lang]">
> but is there something like an logical and?

Try "and" (lowercase, without quotes), like
 <xsl:apply-templates select="sect1[@lang=$lang and @id='news']"/>

BTW
  <xsl:template match="sect1[@lang= $lang]">
is invalid, variable references are not allowed in match patterns.

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


Current Thread