[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] check for ancestors attribute
How do I need to extend this template to match not only <foo name="bar"> but further restrict my template to those <foo>s that have an ancestor with attribute type="general". <xsl:template match="foo[@name='bar']"> </xsl:template> I only want to match e.g. <...> ... <...type="general"> ... <foo name="bar"> <<--- match this .. </foo> ... </...> ... </...> It seem to be not OK to write: <xsl:template match="foo[@name='bar' and ancestor::@type='general']"> </xsl:template> Can you help? -- Robert Svsemann Associate, Technology | Sapient Kellerstr. 27 81667 M|nchen, Deutschland Tel.: +49 89/552 987-143 Mobil: +49 162/2773-143 Fax: +49 89/552 987-100 Email: rsoesemann@xxxxxxxxxxx
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|