Re: Selecting specific ancestory by relation and name
It appears that you just want <xsl:template match="A/C"> something </xsl:template> <xsl:template match="C"/> <!-- nothing --> but if you really want to go up and down with an xpath "parent::A/C" is simpler (and better if namespaces are involved) than "ancestor::*[name()='A']/C" David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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