Here is an easy way to do this that does not require the use of DOE :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="x"> <xsl:variable name="thisNode" select="."/> <a href="{$thisNode/@DSErpHyperlink}">SomeLinkText</a> </xsl:template> </xsl:stylesheet>
when this conversion is applied to the following XML document :
<t> <x DSErpHyperlink= "dynamicsnav://servername:7041/ServiceName/CRONUS Italia SpA/runpage?page=30&bookmark=224;GwAAAACJBDEwMDE=&mode=Create " /> </t>
required, the correct result is obtained :
<a href="dynamicsnav://servername:7041/ServiceName/CRONUS Italia SpA/runpage?page=30&bookmark=224;GwAAAACJBDEwMDE=&mode=Create ">SomeLinkText</a>
source share