Subject: [xsl] How to select an attribute on the current node or its anchestor From: Philipp Kursawe <phil.kursawe@xxxxxxxxx> Date: Fri, 15 Apr 2011 08:06:14 +0200 |
Hello, given the following xml: <node data="foo"> B <text id="1" data="bar"/> B <text id="2"/> </node> I would like to know the XPath expression to select @data which results in "bar" for @id=1 and "foo" for @id=2. The general idea is to search for the attribute in the anchestor if the current node does not contain the attribute all the way up to the root node. Thanks for your help! Phil
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Traverse sub tree startin, Graeme Kidd | Thread | Re: [xsl] How to select an attribut, Brandon Ibach |
Re: [xsl] mode, ac | Date | Re: [xsl] How to select an attribut, Brandon Ibach |
Month |