Subject: [xsl] multilevel matching using attributes in a single expression ? how ? From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx> Date: Thu, 11 Sep 2003 01:57:06 -0500 |
<xsl:template match = "/Document/Chapter[@Name='Chapter1']/Section[@SectionHeading='Section5'] "> I am trying to match a particular Chapter using an attribute and a particular section in that chapter using another attribute. Eventually I want to "match" that particular SECTION based on its chapter name and its heading. <Document> <Chapter Name="Chapter1" .... > <Section etc... > .............................. <Section SectionHeading = "Section5" ..> It doesn't seem to work. Any pointers? Or solution to that ? How can I create such a match expression ? to point to a particular section based on its complete path ( with attributes ) The following work individually to match that nodes in the tree. <xsl:template match="/Document/Chapter[@Name='Chapter1]"> <xsl:template match="Section[@SectionHeading='Section5']"> I kind of wanted a single like combination of the two. Possible ? If not whats a good way of "combining" the above two templates to eventually match the second one (section with particular heading attribute) ? Abhishek Sanwal HP - Houston Campus abhishek.sanwal@xxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
SOLVED Re: [xsl] Building a html me, ausec | Thread | RE: [xsl] multilevel matching using, SANWAL, ABHISHEK (HP |
RE: [xsl] How to use two xmls for c, Jarno . Elovirta | Date | AW: [xsl] multilevel matching using, Zink, Juergen |
Month |