I am using a UDT data source with the XSL Transformation Visualizer. I have not been able to apply a stylesheet that works. The XML source is:
<DocumentElement xmlns="DotNetNuke/UserDefinedTable">
<QueryResults>
<Scout>Boy 1</Scout>
<Den>Wolf</Den>
</QueryResults>
<QueryResults>
<Scout>Boy 2</Scout>
<Den>Wolf</Den>
</QueryResults>
</DocumentElement>
I have created a stylesheet and I have used the BasicTable.xsl file that is part of the UDT module. Both give the the same result of:
Boy 1WolfBoy 2Wolf
I expected:
Boy1
Boy2
The stylesheet is:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:udt="DotNetNuke/UserDefinedTable">
<xsl:output method="xml" version="1.0" indent="yes" omit-xml-declaration="yes" />
<xsl:template match="DocumentElement/QueryResults">
<xsl:value-of select="Scout"/>
<br/>
</xsl:template>
</xsl:stylesheet>
If I remove the {xmlns="DotNetNuke/UserDefinedTable"} from the {<DocumentElement xmlns="DotNetNuke/UserDefinedTable">} in the XML source then it works.
What am doing wrong?
Thanks,
Greg Hart