|
Subject: [xsl] XPath attribute expression From: "Hintz, David L" <dlh@xxxxxxx> Date: Mon, 18 Dec 2006 18:27:52 -0500 |
I'm a relative newbie, so I apologize if this question is too basic.
Assume that my document has this structure:
<topLevel>
<ents>
<ent name="abc"><value>test1</value></ent>
<ent name="def"><value>test2</value></ent>
</ents>
.
.
.
<para>This is a <entRef name="def"/>.</para>
What XPath expression can I use in context of this <entRef> element to
reference the content of the <value> element that matches the <ent> name
attribute (as shown above). I've gotten this far:
/topLevel/ents/ent[@name]/value
But, that always returns the first value. Somehow I need to test @name
that equals the "name" of the current tag.
Dave
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Apache FOP Border, Tony Lavinio | Thread | Re: [xsl] XPath attribute expressio, Florent Georges |
| RE: [xsl] Apache FOP Border, Mauritz Jeanson | Date | Re: [xsl] XPath attribute expressio, Florent Georges |
| Month |