Rolando Isidoro wrote:
Hello, I've successfully managed to integrate external data into a Lenya publication. Nevertheless I'm not very pleased with the current solution, since my goal is to present the data fully integrated with the page layout, keeping the menus, tabs (everything as defined in page2xhtml.xsl) and by now I'm just able to take the XML from the external source and present it separately after performing a XSL transformation.

Currently I have the following code under publication-sitemap.xmap:

   <map:match pattern="**/staff/asg/profile">
<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>

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.

Can someone help with this issue?


Just make sure that whatever you are generating agrees with page2xhtml.xsl

Ie. make sure that you enclose what you want to appear in
div tags whose id="body"

and correctly declare the xhtml namespace: xmlns:xhtml="http://www.w3.org/1999/xhtml 
inside your <xsl:stylesheet ../> tags



Vica

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

Reply via email to