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]

easy XPath question



Hi,

I have an XML in the following format

<level1 type='one'>
     <level2 name = 'a'>
          <description>abc</description>
     </level2>
     <level2 name = 'b'>
          <description>bcd</description>
     </level2>
</level1>
<level1 type='two'>
     <level2 name = 'a'>
          <description>abc</description>
     </level2>
     <level2 name = 'b'>
          <description>bcd</description>
     </level2>
</level1>


What should be the XPath for getting all the <level2 with attribute 'name'>
nodes under <level1 with type = 'one'>.

Thanks in advance,
Sanjay



 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]