I have a C# class that is serialized like this:
<oadResults
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.tyr.org.uk/standards"
>
<Link>http://www.tyr.org.uk//290/Data.zip</Link>
<ID>3540</ID>
</oadResults>
And I have a XSLT file:
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:template match="/">
ID <xsl:value-of select="ID"/> </xsl:template>
</xsl:stylesheet>
The transformation does not work, the result is: "ID"
But if I delete this from the XML file:
xmlns="http://www.tyr.org.uk/standards"
It works fine and I get_ "ID:3540"
Can you tell me how I fix the problem changing the XSL file and not the XML?