Problems with <xsl:param name Help!

K

kirashet

Hello everybody,

I tried to make a XSL:FO - Sheet where I can control if the PDF should
be printed in portrait or landscape.
My results so far:

<xsl:param name="printingtype" select="'landscape'">
<xsl:variable name="pageheight">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">21</xsl:when>
<xsl:eek:therwise>29.7</xsl:eek:therwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="pagewidth">
<xsl:choose>
<xsl:when
test="$printingtype='landscape'">29.7</xsl:when>
<xsl:eek:therwise>21</xsl:eek:therwise>
</xsl:choose>
</xsl:variable>

It works, but not in that way I want ^^
And now my question: How can I control the | select="'landscape'" |
value... I tried everything, but I must say that I'm not long familiar
with XSL...

A nice hint would be very nice ;)

greets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top