On 7/28/05, Rolando Isidoro <[EMAIL PROTECTED]> wrote:
> Somedays ago I looked into solprovider's webpage and came across some
> relevant data in http://solprovider.com/lenya/external. Still I'm not
> able to reach the desired result, just below is shown my latest try:
>     <!-- Match every document with URI terminating with the string
> profile || The 2nd * refers to the ID of each staff child node -->
> 
>     <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="xml"/>
>     </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="html"/>
>     </map:match>
> 
> I thought this would get data from the data source, transform it with
> OAI2xhtml.xsl and aggregate it with the remainder of the cmsbody parts
> and then transforming it with page2xhtml.xsl; instead it shows only the
> cmsbody parts with a weird presentation, as if the XSL are not being
> found or correctly used.

Check your <map:serialize type="xml"/> and <map:serialize type="html"/>.

The former produces "only the cmsbody parts with a weird presentation,
as if the XSL are not being found or correctly used."  The latter
displays HTML.

Each entry pipeline must return HTML.  Pipelines used internally (such
as called using <map:part>) should serialize XML.  You have them
reversed.

solprovider

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

Reply via email to