selection by comparing attributes

Subject: selection by comparing attributes
From: Larry Blanchette <Larry.Blanchette@xxxxxxxxxxxxx>
Date: Tue, 16 Feb 1999 09:48:10 -0800
I'm trying to do a selection by comparing attributes.  I saw the
following example:

Find all books where the value of the style attribute on the book is
equal to the value of the specialty attribute of the bookstore element
at the root of the document:

       book[/bookstore/@specialty = @style]


XT complains that a quoted string is expected, this follows the WD.

How would you do this without using id()?

Larry Blanchette

 XSL-List info and archive:

Current Thread