cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liam MacQuarrie Morley" <lmor...@WPI.EDU>
Subject Re: Separation of Logic and Content
Date Wed, 29 Aug 2001 22:09:02 GMT
It would be nice if you were to mention whether you are using Cocoon 1 or
Cocoon 2, as I'm not sure if there are differences. The following is what I
do for Cocoon 2 to seperate the XSL from the XML in the stylesheet (which is
fairly common in the examples):

   <map:match pattern="*.html">
     <map:generate src="my-page/{1}.xml"/>
     <map:transform type="my-transformer"/>
     <map:transform type="xslt" src="my-style/my-stylesheet.xsl"/>
     <map:serialize/>
   </map:match>

As you can see, the generate src specifies the XML, and the transform type
specifies the XSL, both in the stylesheet.

Liam Morley

----- Original Message -----
From: Beat De Martin
To: cocoon-users@xml.apache.org
Sent: Wednesday, August 29, 2001 2:14 PM
Subject: Separation of Logic and Content



Hello
If I want to separate logic (XSL) and content (XML) how will the sitemap
look like ?
I know I could handle the logicsheet like a taglib and make a new entry in
the cocoon.xconf. Is there another way ?
Thanks
Beat





Get your FREE download of MSN Explorer at http://explorer.msn.com
--------------------------------------------------------------------- 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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message