• 0

[XML]xlink:href


Question

I'm in the process of using xsl to transform a document and my context node is:

<image xlink:href="http://www.google.com/images/logo.gif">

and I would like to read the value out of the xlink:href. How do I do it?

*edit* value meaning the string url *edit*

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ah, found it.

I just had to make sure that I had the correct namespace declaration in my xsl file that my source document has then simply do

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

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.