cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Howard" <coc...@leverageweb.com>
Subject RE: input modules
Date Sun, 30 Mar 2003 12:32:48 GMT
Isn't this what Forrest does?

Geoff

> -----Original Message-----
> From: Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
> Sent: Saturday, March 29, 2003 12:33 PM
> To: cocoon-dev@xml.apache.org
> Subject: input modules
> 
> 
> Hi All
> 
> Is it possible to use a value from a matcher in an input module?
> (I asked about this a while ago, there was some interest, but I don't 
> remember what was resolved).
> 
> I need to take a URL coming into a Sitemap, pass it to an input module 
> and use the returned value in the @src of a generator. ie. I am using 
> an XML file to 'translate' URLs.
> 
> I have a 'linkmap' that maps incoming URL stubs to file locations (and 
> describes the structure of a site).
> 
> A linkmap looks something like this:
> 
>    <map lang="en">
>      <ref xl:label="home" xl:href="home.xml" xl:title="blah">
>        <name>KISS</name>
>        <ref xl:label="work" xl:href="work/home.xml" xl:title="blah">
>          <name>Work</name>
>          <ref xl:label="schematic" xl:href="work/schematic.xml" 
> xl:title="blah">
>            <name>Schematic</name>
>          </ref>
>        </ref>
>        <ref xl:label="faq" xl:href="faq/home.xml" xl:title="blah">
>          <name>FAQ</name>
>          <ref xl:label="faq.strech" xl:href="faq/strech.xml" 
> xl:title="blah">
>            <name>Dil Add Freeflow</name>
>          </ref>
> etc.
> 
> With a pipeline like this:
> 
> <map:match pattern="*">
> 	<map:generate src="{linkmap:{1}}"> ???????
> 	etc.
> </map:match>
> 
> How do you pass the "{1}" into the input module that will look up the 
> URL (using XPath) in the LinkMap?
> 
> Thanks for any help
> 
> regards Jeremy
> 
> 
> 

Mime
View raw message