I have an xslt file which can be called 2 ways;
1) the user clicked on excel download
2) the user clicked on html download
I can get the html download working, but not excel download.
When I try to add in the code I want, neither work and I get the same error:
"Prefix 'xmlns' is not defined."
This is the code:
I need the html to look like this when excel is being used (denoted by the otherwise from <xsl:call-template name="HTMLStyle"/>):
<html xmlns
="urn:schemas-microsoft-com
ffice
ffice" xmlns:x="urn:schemas-microsoft-com
ffice:excel" xmlns="
And when its HTML; I don't need it to look like that.
Any help or pointers would be appreciated. Thanks
1) the user clicked on excel download
2) the user clicked on html download
I can get the html download working, but not excel download.
When I try to add in the code I want, neither work and I get the same error:
"Prefix 'xmlns' is not defined."
This is the code:
Code:
<html>
<xsl:choose>
<xsl:when test="$reportType = 'HTML'">
<xsl:call-template name="HTMLStyle"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="xmlns">
[URL unfurl="true"]http://www.w3.org/TR/REC-html40[/URL]
</xsl:attribute>
<xsl:attribute name="xmlns:o">
urn:schemas-microsoft-com:office:office
</xsl:attribute>
<xsl:attribute name="xmlns:x">
urn:schemas-microsoft-com:office:excel
</xsl:attribute>
<xsl:call-template name="ExcelStyle"/>
</xsl:otherwise>
</xsl:choose>
<body>
<h1>MAIN SITE</h1>
I need the html to look like this when excel is being used (denoted by the otherwise from <xsl:call-template name="HTMLStyle"/>):
<html xmlns
And when its HTML; I don't need it to look like that.
Any help or pointers would be appreciated. Thanks