I'm not sure I'm following correctly what you said:
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
Under publication-sitemap.xmap, for any regular document of a publication we have this pipeline to build the page:

    <map:pipeline>
      <!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url} -->
      <map:match pattern="lenyabody-*/*/*/*/**">
        <map:aggregate element="cmsbody">
          <map:part src=""/>
          <map:part src=""/>
          <map:part src=""/>
          <map:part src=""/>
          <map:part src=""/>
        </map:aggregate>

        <map:transform src="">
          <map:parameter name="root" value="{page-envelope:context-prefix}/{2}/{3}"/>
          <map:parameter name="url" value="{5}"/>
          <map:parameter name="document-id" value="{page-envelope:document-id}"/>
          <map:parameter name="document-type" value="{page-envelope:document-type}"/>
          <map:parameter name="language" value="{page-envelope:document-language}"/>
        </map:transform>

        <map:select type="parameter">
          <map:parameter name="parameter-selector-test" value="{1}"/>
          <map:when test="view">
          <map:transform type="link-rewrite"/>
          </map:when>
        </map:select>
        <map:serialize type="xml"/>
      </map:match>
    </map:pipeline>

The red highlighted
code leads the doctypes.xmap file to be processed, in particular this section

      <map:match pattern="*/*/*/**.xml">
        <map:generate src=""/>
        <map:transform src="">
          <map:parameter name="rendertype" value="{1}"/>
          <map:parameter name="nodeid" value="{page-envelope:document-node-id}"/>
          <map:parameter name="language" value="{page-envelope:document-language}"/>
        </map:transform>
        <map:serialize type="xml"/>
      </map:match>

that "pulls the XML from {pub}/content, and performs a transformation xslt/{document-type}2xhtml.xsl" (from http://solprovider.com/lenya/display).

This is basicaly what I'm doing (or at least I think it is), but instead of using doctypes.xmap I do everything in publication-sitemap.xmap.
I'll try the "Second solution" presented in http://solprovider.com/lenya/external and see if I can make it to work.

Thanks for the reply, regards,
Rolando

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

Reply via email to