I want to get all "generateId" values of the text nodes which are a child of a specific node whose attribute "id" value is known. I can i test for this condition using XSL?
+1
A:
Use an XPath 2.0 expression like this:
//specificNode[@id=$knownValue]/text()/generate-id(.)
You may also use keys (<xsl:key>
and the key()
function) for more efficient selection of all specificNode-s that have an id
attribute with a knownValue.
Dimitre Novatchev
2010-05-26 22:46:50
Thanks for you response.
Rachel
2010-05-26 23:39:08
@Rachel: Was this the answer that you needed?
Dimitre Novatchev
2010-05-27 03:28:30
Yes it works. Thanks.
Rachel
2010-06-01 17:03:38