Alex Romayev wrote:
> I have a process in which in need to call the same
> pipeline recursively and aggregate the results.
>
> Basically, I have a pipeline which parses a paginated
> HTML page:
>
> <map:match pattern="parse">
> <map:generate type="html"
> src="http://www.foo.com?page={request-param:page}/>
> <map:transform .../>
> <map:serialize type="xml"/>
> </map:match>
>
> The pipeline needs to look for a particular record, if
> it doesn't find it on page 1, it needs to go to page
> 2, etc, until it finds it.
>
> Seems like the solution is to call the map
> recursively, and aggregate the results. Has anyone
> done anything like this?
I did something like this once, to aggregate a list of html pages together. Each page
had a [next] link at the bottom, and my pipeline basically followed these links. I
think you want something similar. I don't have the code still, but from memory,
something like this:
<map:match pattern="page/*">
<map:generate type="html" src="http://www.foo.com/?page="{1}"/>
<map:transform src="check-if-found-or-keep-looking.x
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]