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]

Filtering using XSL


Hi,
Can anyone help me out...
My XML file is as follows...
<Main>
  <Chapter Value = "true"/>
  <Chapter Value = "false">
       <Chapter Value = "true"/>
   </Chapter>
  <Chapter Value = "true"/>
</Main>

I want to get all Chapters with Value(attribute) "true".
In my XSL,I used as follows...
<xsl:template match = "Main[not(.//Chapter[@Value = 'false'])]"/>

But,its not filtering all the Chapters...Its filtering only the main 
Chapters...Any ideas/suggestions will be greatly helpful for me..
Thanks in advance
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




 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]