Folks,

I want to vary a Paginator's parameter depending on the amount of info available. So I wrote "src='cocoon:/pagesheet' to fetch the pagesheet from a xml-producing pipeline. When I define it like this, it works:

<map:match pattern="pagesheet">
        <map:read mime-type="text/xml" src="mypagesheet.xml"/>
</map:match>

But this fails with a not-so-elegant NPE :(

<map:match pattern="pagesheet">
        <map:generate type="jx" src="mypagesheet.jx"/>
        <map:serialize type="xml"/>
</map:match>

Why? Opening "pagesheet" directly works, so it doesn't seem to be the pagesheet file itself. Paginator apparantly resolves 'cocoon:/' okay,
since the Reader-based attempt works.

Any suggestions? I don't see anything suspicious in Paginator.java...

Sandor

-----------------------------------------------------------------------
Information and Computing Sciences, Utrecht University, the Netherlands
'Content and knowledge engineering' http://www.informationscience.nl/
Personal coordinates: http://www.cs.uu.nl/people/sandor/
"... unthinkable surprises, about to happen, but what they are -
 it's not up to you, oh, it never really was."  (Bjork on Vespertine)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to