On 7/29/05, Rolando Isidoro <[EMAIL PROTECTED]> wrote:
> >Each entry pipeline must return HTML.  Pipelines used internally (such
> >as called using <map:part>) should serialize XML.  You have them
> >reversed.
> This means I should switch <map:serialize type="xml"/> and
> <map:serialize type="html"/> so it looks like the code listed below
>    <map:match pattern="**/staff/*/profile">
>        <map:aggregate element="cmsbody">
>            <map:part
> src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/breadcrumb/index.xml"/>
> 
>            <map:part
> src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/tabs/index.xml"/>
> 
>            <map:part
> src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/menu/index.xml"/>
> 
>            <map:part
> src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/search/index.xml"/>
> 
>            <map:part src="cocoon:/staff-{2}"/>
>        </map:aggregate>
>        <map:transform src="xslt/page2xhtml.xsl"/>
>        <map:serialize type="*html*"/>
>    </map:match>
> 
>    <!-- Match for each staff child node ID existent -->
>    <map:match pattern="staff-asg">
>        <map:generate
> src="http://localhost/cwis/SPT--OAI.php?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=Creator:Adolfo%20Steiger"/>
> 
>        <map:transform src="xslt/OAI2xhtml.xsl"/>
>        <map:serialize type="*xml*"/>
>    </map:match>
> 
> so that the inner pipeline returns xml and the main one returns html.
> 
> I've performed this change and the result remained the same. Any idea why?

Did you clear the cache and restart Lenya?  (I do not see anything
writing to the cache, but maybe there is more code?)  Lenya caches
things erratically.  I have a common.xsl which is imported by many XSL
files, and changes sometimes will not appear until Lenya is restarted,
even in a non-caching pipeline.

Please tell me the stars around *html* and *xml* are not in
production. (If so, the serializer would use the default, which is
probably xml.)

---
Tracing the pipeline:
The URL is like:
http://yourserver/xxx/staff/empname/profile

It uses the first match and aggregates the navigation with:
cocoon:/staff-empname

"empname" must be "asg" for your test, since you hardcoded the second
pipeline.  Now we assume it was so we hit the second pipeline.  It
gets the hardcoded page, does a transform, then passes back XML.

The first pipeline takes all the XML, does a transform, then returns HTML.

As long as your page2xhtml.xsl produces something close to HTML, this
should work fine.

solprovider

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

Reply via email to