S
sheinaz
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:
<xslaram name="printingtype" select="'landscape'">
<xsl:variable name="pageheight">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">21</xsl:when>
<xsltherwise>29.7</xsltherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="pagewidth">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">29.7</xsl:when>
<xsltherwise>21</xsltherwise>
</xsl:choose>
</xsl:variable>
Any guidance would be appreciated.
thanks
shen
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:
<xslaram name="printingtype" select="'landscape'">
<xsl:variable name="pageheight">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">21</xsl:when>
<xsltherwise>29.7</xsltherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="pagewidth">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">29.7</xsl:when>
<xsltherwise>21</xsltherwise>
</xsl:choose>
</xsl:variable>
Any guidance would be appreciated.
thanks
shen