cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <>
Subject Re: Adding XSP Login in a XSL Stylesheet?
Date Tue, 06 Nov 2001 14:18:45 GMT
I usually do the "apply logic sheet and transform into XSP" outside of Cocoon (i.e., in my
Ant build):

         <target name="xslt">

Then, in Cocoon, I do:

>    <map:match pattern="umantis/*.html">
>    <map:generate type="serverpages" src="docs/samples/umantis/{1}.xsp"/>
>    <map:transform src="stylesheets/formatting_stylesheet.xsl"/>
>    <map:serialize/>
>    </map:match>

Doing it this way is more efficient:  why make Cocoon build at run time something that you
can build yourself at compile time?

If you need to, though, there probably is a way to do the xsp/logic transform, followed by
the formatting transform, at runtime in one pipeline.  Can't think of how to do it off the
top of my head, though, as it would require 2 generate steps.

HTH.  Email if not.


At 01:50 PM 11/6/01 +0100, you wrote:
>Hi all
>I've been trying to get an example working where content, logic and
>presentation are completely seperated.
>I'm having a lot of problems with the first step though.
>I have an XML file which contains the content (see attached file) and a
>xsl stylesheet which should add some xsl logic.
>In the sitemap I have the following entry:
>    <map:match pattern="umantis/*.html">
>    <map:generate src="docs/samples/umantis/{1}.xml"/>
>    <map:transform src="stylesheets/umantis-xsp.xsl"/>
>    <map:serialize/>
>    </map:match>
>I would like to transform the xml file adding xsp logic to it. The
>problem is that is doesn't seem to "execute" the xsp code. Which means I
>always have <xsp:expr>new Date()</xsp:expr> in the HTML instead of the
>actual date.
>I would be very grateful for any pointers.
>cheers very much
>Gordon Mickel
>Gordon Mickel, Arpanet AG
>Steinengraben 18, 4002 Basel, Switzerland
>Tel: +41 (0)61 276 96 60, Fax: +41 (0)61 276 96 66
>Please check that your question has not already been answered in the
>FAQ before posting. <>
>To unsubscribe, e-mail: <>
>For additional commands, e-mail: <> 

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message