[Home] [By Thread] [By Date] [Recent Entries]
Hello,
For my contrived example below, I would like to select all book nodes whose owner is "aaa" *or* which have a chapter whose owner is "aaa", and I would like the books to be retrieved in the same general order as the xml document, i.e., the query for the example below would process books with id's 1, 3, 4 (in that order), not 1, 4, 3. I can do the XPATH for *either* of the two cases, but don't know how to combine the two for an OR search in my xsl:apply-templates select statement. <xsl:a-t select="book[owner='aaa'] or book/chapter[owner='aaa']"/> is kind of what I want, but Xalan is complaining that my select attribute is just returning a boolean, so my syntax is apparently wrong. Any help would be much appreciated. Thanks, Glen
|

Cart



