Xpath AndExpr on attribute values?

Subject: Xpath AndExpr on attribute values?
From: "Michael Beddow" <gll6mb@xxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Jun 2000 09:36:02 +0100
Could somebody please help me out with the right syntax for an
Xpath expression that does a logical AND on the values of two
attributes of the same element? I can get examples strictly
modelled on Mike K. p 334-335 to work, but they don't cover my

Where I have stuff like
 <saying language="en" topic="morals">blah blah blah</saying>

I want to do something like
<xsl:apply-templates select="text/saying[@language='en'] and

but that gives me

org.apache.xalan.xpath.XPathException: Can not convert #UNKNOWN
to a NodeList!

What am I doing wrong?

Michael Beddow
University of Leeds UK

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

Current Thread