[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Xpath AndExpr on attribute values?
Can 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 case. Where I have stuff like <text> <saying language="en" topic="morals">blah blah blah</saying> ... </text> I want to do something like <xsl:apply-templates select="text/saying[@language='en'] and text/saying[@topic='morals']"/> but that gives me org.apache.xalan.xpath.XPathException: Can not convert #UNKNOWN to a NodeList! What am I doing wrong? Michael ------- Michael Beddow University of Leeds UK XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|