Extracting URL value from XML Element



Please help me with the following.


Input xml is..



<Request>
<Header>
<References type ="URL">
<ReferenceNumber>http://ift.tt/1v3rFl7;
</References>
</Header>
</Request>


The XSLT is..



<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://ift.tt/tCZ8VR">
<xsl:template match="/">
<xsl:value-of select="Request/Header/References/ReferenceNumber"/>
</xsl:template>
</xsl:stylesheet>


This XSLT works for everything else but the specified value in ReferenceNumber element as shown above.


Am I missing something?


Thanks in advance, Sashank


No comments:

Post a Comment