[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-dev
Subject:    Re: input modules
From:       Jeremy Quinn <jeremy () media ! demon ! co ! uk>
Date:       2003-03-31 17:51:45
[Download RAW message or body]


On Sunday, March 30, 2003, at 02:20 PM, Geoff Howard wrote:

> But the mechanism they use to translate a to b still seems
> analogous.  Even if (IIRC) you don't want to do this at
> transform time.  Maybe it's analogous but not useful.

OK, I take your point ;)
I'll have another look, to see if it offers yet another solution.

But my first question still stands .... did we work out a method 
whereby dynamic sitemap variables can be passed to input modules?

<snip/>

>>>> -----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.

<snip/>

>>>> 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?

regards Jeremy

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic