#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Zürich
    Posts
    1
    Rep Power
    0

    Question Cocoon/XML/xyz.xml?page=1


    hi,

    i'got through the installation of apache/tomcat/cocoon on win2000. i woul'd like to pass a variable called 'page' in the url (.../xyz.xml?page=1) and call this in the associated xsl-stylesheet. as far i know, in php this is done by call it within the code as '$page'.

    can anyone help me out of this?

    frank
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    heilbronn / germany
    Posts
    2
    Rep Power
    0
    have a look:

    part of file 1:
    <xsl:when test="not($para_land='')">
    <xsl:for-each select="film[land=$para_land]">
    <xsl:sort select="titel"/>
    <option>
    <xsl:attribute name="value">archiv.xml?para_test=<xsl:value-of select="titel"/> -> parameter
    </xsl:attribute>
    <xsl:value-of select="titel"/>
    </option>
    <br/>
    </xsl:for-each>
    </xsl:when>

    part of file 2(just an example..to check a parameter):
    <h2 align="center"><a name="inhalt"></a>
    <xsl:choose>
    <xsl:when test="not($para_jahr='')">
    Jahr<br/>
    <xsl:value-of select='$para_jahr'/>
    </xsl:when>
    <xsl:when test="not($para_land='')">
    Land<br/>
    <xsl:value-of select='$para_land'/>
    </xsl:when>
    <xsl:when test="not($para_regie='')">
    Regie<br/>
    <xsl:value-of select='$para_regie'/>
    </xsl:when>
    <xsl:when test="not($para_darsteller='')">
    Darsteller<br/>
    <xsl:value-of select='$para_darsteller'/>
    </xsl:when>
    <xsl:when test="not($para_genre='')">
    Genre<br/>
    <xsl:value-of select='$para_genre'/>
    </xsl:when>
    </xsl:choose>

IMN logo majestic logo threadwatch logo seochat tools logo