xsl-list
[Top] [All Lists]

xslt and xpath troubles

2003-06-18 04:37:16
hi all,

in my xml document its possible to reference the content of particular
element elsewhere in the xml document.
for example:

<element1 id="id1">something....</element1>
......
<elementX><get xlink:href="//*[id='id1']"/></elementX>

is it possible in the xslt to resolve this xpath expression and to include
the referenced element?

i tried the following, but all i get is the "//*[id='id1']" (as a string)

<xsl:template match="get">
  <xsl:value-of select="@xlink:href"/>
</xsl:template>

any help is appreciated!
greetinx,
maia


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>