cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Sitemap Transformations
Date Thu, 06 Jun 2002 07:43:23 GMT
On 05.Jun.2002 -- 03:54 PM, daniel robinson wrote:
> I've posted to users but nothing yet.
> 
> I want to pass a parameter from the sitemap file to an XSP.  In the Sitemap I
> have:
> 
>  <map:match pattern="index">
>     <map:generate type="serverpages" src="xsp/w3/index2.xsp">
>        <map:parameter name="SourcePage" value="Index"/>          <--- set
> variable here
>     </map:generate>
>    <map:transform src="stylesheets/w3/index2.xsl"/>
>      <map:serialize/>
>   </map:match>
> 
> and then use it in index2.xsp.  I tried this, and lots of other things:
> 
> ...snip...
>      <esql:execute-query>
>        <esql:query>
>                 select * from "Story"
>                      where
>                     "ProjectName" = 'MyProj'
>                         and
>                     "PageName" = '"$SourcePage"'           <----- use it here

IIRC it should be
                      "PageName"= <esql:parameter><xsp:expr>parameters.get("SourcePage")</xsp:expr></esql:parameter>


	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message