Bart van Dijk wrote:

Hi Michi!

Thank you, I've tried to implement the code, but I can't get it working.
Maybe you can help me a little more? Sorry, I'm not a Lenya expert...


I've added this parameter in the tasks.xconf:

 <parameter name="cocoon-view" value="external"/>

this parameter needs to be passed to the actual Java class

org.apache.lenya.cms.publishing.StaticHTMLExporter

which means this class would need to be patched/enhanced slightly
by addind the cocoon-view parameter to the URL

Now I want to add changes in the pipeline that builds the page in
publication-sitemap.xmap, like this

I actually meant real cocoon-views:

<map:views>
 <map:view from-label ....

HTH

Michi

<map:select type="parameter">
        <map:parameter name="parameter-selector-test" value="{cocoon-view}"/>
     <!-- executes iff the value of cocoon-view equals
            "external" (without quotes) -->
        <map:when test="external">
          <map:transform src="xslt/page2xhtml-external.xsl">
                <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:when>
</map:select>

Is this code wrong or am I supposed to move this code to another pipeline?

I hope you can help me,
Bart


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Michael Wechner
Sent: Thursday, July 07, 2005 10:39
To: [email protected]
Subject: Re: Using custom XML style sheets for exporting


Bart van Dijk wrote:

Hi,

I want to use the export function to produce two different websites based
on
the same information. The content is more or less the same but the layout
differs. Also, using only CSS is not sufficient. Therefore I was thinking
of
using two different XML stylesheets (for example page2xhtml-export1.xsl and
page2xhtml-export2.xsl) but I don't know how to configure the export
function for using different stylesheets. Is it possible to do something
like this?



I think it makes more sense to enhance it by a cocoon view
parameter, e.g.

<parameter name="cocoon-view" value="export2"/>

whereas the cocoon-view would have to be implemented into
the sitemap of course.

Makes sense?

Michi

  <task id="export"
class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
    <parameter name="export-path" value="work/export/export1"/>
    <parameter name="stylesheet" value="page2xhtml-export1.xsl"/>
  </task>

  <task id="export"
class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
    <parameter name="export-path" value="work/export/export2"/>
    <parameter name="stylesheet" value="page2xhtml-export2.xsl"/>
  </task>


Regards,
Bart


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






--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


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


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




--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


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

Reply via email to