Hi I am tryign to use this to print my table in landscape by default.
i am new at the xsl and need some assistance. when i try to use the
following i get the error:
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Variable or parameter 'printingtype' cannot have both a select
attribute and non-empty content.
code:
<xsl:param name="printingtype" select="'landscape'">
<xsl:variable name="pageheight">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">21</xsl:when>
<xsl:otherwise>29.7</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="pagewidth">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">29.7</xsl:when>
<xsl:otherwise>21</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Any guidance would be appreciated.
thanks
shen