cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daniel robinson <d...@dnai.com>
Subject Passing xmap parameters to xsp
Date Wed, 05 Jun 2002 21:06:30 GMT
Ok, I've been struggling with this for hours.

I want to set a parameter in my pipeline something like this:

 <map:match pattern="index">
    <map:generate type="serverpages" src="xsp/w3/index2.xsp"/>
       <map:parameter name="SourcePage" value="Index"/>              <--------
Set it here
   <map:transform src="stylesheets/w3/index2.xsl"/>
     <map:serialize/>
  </map:match>

and then use it in index2.xsp.  I tried this:

...snip...
     <esql:execute-query>
       <esql:query>
                select * from "Story"
                     where
                    "ProjectName" = 'MyProj'
                        and
                    "PageName" = '"$SourcePage"'           <----- use it here
...snip...


Please help.  I've been looking all through the doco - examples etc.   When I
try the above I get an exception when Cocoon attempts to recompile the
sitemap.

Thanks,

Dan


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

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message