J
joe.osowski
OK, I hate to ask, but I seem to have run across one of those issues
where there answer is so grossly obvious, I can't see it.
Scenario:
XML:
<?xml version="1.0" encoding="utf-8"?>
<Report>
<user>
<lastname>Smith</lastname>
</user>
</Report>
XSL:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
utput method="text" encoding="utf-8" />
<xsl:template match="/">
<xsl:value-of select="Report/user/lastname" />
</xsl:template>
</xsl:stylesheet>
Outputs:
Smith
Scenario 2: (adding a namespace)
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schema.somedomain.com/Schema">
<user>
<lastname>Smith</lastname>
</user>
</Report>
XSL: (same)
Outputs: (null)
How / where do I add the namespace reference in the XSL to make this
work?
Thanks
where there answer is so grossly obvious, I can't see it.
Scenario:
XML:
<?xml version="1.0" encoding="utf-8"?>
<Report>
<user>
<lastname>Smith</lastname>
</user>
</Report>
XSL:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
<xsl:template match="/">
<xsl:value-of select="Report/user/lastname" />
</xsl:template>
</xsl:stylesheet>
Outputs:
Smith
Scenario 2: (adding a namespace)
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schema.somedomain.com/Schema">
<user>
<lastname>Smith</lastname>
</user>
</Report>
XSL: (same)
Outputs: (null)
How / where do I add the namespace reference in the XSL to make this
work?
Thanks