RE: [xsl] matching an element based on the content of it's descendant text node

Subject: RE: [xsl] matching an element based on the content of it's descendant text node
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 14 Mar 2005 10:00:52 -0000
> So, what I want to do is be able to have a template that matches a
> table element if it has a descendant text node containign a given
> string.
> 
> Can this be done and if so how?


match="table[.//text()[contains(.,'given string')]]"

Michael Kay
http://www.saxonica.com/

Current Thread