This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Filtering using XSL



> Actually,
> <xsl:template match = "Main[.//Chapter[@Value = 'false']]" />
> should work...

what do you mean by `should work' ? As  Steve Tinney said, it is
a valid match expression but almost certainly not what you want.

You said that you wanted to match on chapters, but that match either
gives you the `Main' node (in the case that there is a chapter
with value false) or the empty node list otherwise. It will
never match on any chapters.

David


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]