Title: RE: cannot get my parameter / value passed to transformer

What do you see on your page?

Are you sure that you are passing in a value from the sitemap?  Maybe try hard-coding the value of the sitemap parameter to make sure it isn't empty.

...
     <map:transform src=""xsl/mysheet.xsl">
     <map:parameter name="lang" value="my_hardcoded_value"/>
     </map:transform>
...

In your xsl stylesheet, I think you need a <body> tag for something to show up on your HTML page.

   <!-- request parameter used for language -->
   <xsl:param name="lang"/>
....
   <xsl:template match="/">
   <html>
   <body>
   <xsl:text>test1</xsl:text>
   <xsl:value-of select="$lang"/>
   </body>

.............

-----Original Message-----
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: cannot get my parameter / value passed to transformer


hello, I have the following now, but don't see anything else that "test1"
printed out.... :

   <!-- request parameter used for language -->
   <xsl:param name="lang"/>
....
   <xsl:template match="/">
   <html>
   test1
   <xsl:value-of select="$lang"/>
.............

and in the sitemap :
...
     <map:transform src=""xsl/mysheet.xsl">
     <map:parameter name="lang" value="{lang}"/>
     </map:transform>
...

log says :
Current Sitemap Parameters:
PARAM: 'lang' VALUE: 'EN'
PARAM: '../1' VALUE: 'html'
PARAM: '../0' VALUE: 'index.html'

The match right before this ones does :

    <map:act type="sessionManagement">
    <map:generate src=""xml/menu.xml"/>
    <map:transform src=""xsl/menu.xsl">
    <map:parameter name="lang" value="{lang}"/>
    </map:transform>
    <map:serialize type="html"/>

so "lang" is set by map:act. I can check that it's ok in menu.xsl. Thanks.
BP

----- Original Message -----


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to