Problems with <xsl:param name Help!

Discussion in 'XML' started by kirashet@gmail.com, Jun 2, 2005.

  1. Guest

    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
    , Jun 2, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas Magma

    &# in PARAM NAME causing problems

    Thomas Magma, Aug 11, 2005, in forum: Java
    Replies:
    2
    Views:
    432
    Thomas Magma
    Aug 12, 2005
  2. Geathaa
    Replies:
    2
    Views:
    693
    Geathaa
    Jul 30, 2003
  3. Karsten Weinert
    Replies:
    3
    Views:
    1,008
    Karsten Weinert
    Jul 5, 2004
  4. ectoplasm
    Replies:
    12
    Views:
    637
    Zorro
    Jul 28, 2005
  5. Dave
    Replies:
    5
    Views:
    657
    John Bokma
    Apr 26, 2011
Loading...

Share This Page