cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Vandyck <arn...@ressource-toi.org>
Subject Re: Separation of Logic and Content
Date Wed, 29 Aug 2001 14:51:55 GMT
Date: Wed, 29 Aug 2001 14:14:39 
From: "Beat De Martin" <hot_beat@hotmail.com>

>  #     # ######   #     # ####### #     # #
>  ##    # #    #   #     #    #    ##   ## #
>  # #   # #    #   #     #    #    # # # # #
>  #  #  # #    #   #######    #    #  #  # #
>  #   # # #    #   #     #    #    #     # #
>  #    ## #    #   #     #    #    #     # #
>  #     # ######   #     #    #    #     # #######
> 
> 

> If I  want to separate  logic (XSL) and  content (XML) how  will the
> sitemap look like ? 

	  <map:match pattern="welcome">
		<map:generate src="docs/samples/samples.xml"/>
		<map:transform src="stylesheets/simple-samples2html.xsl"/>
		<map:serialize/>
	  </map:match>

or maybe it's still the logicsheet question? 
or  maybe  you  want  to  parse  multiple  xml  files  with  the  same
stylesheet? 

   <map:match pattern="sites/*.apache.org">
    <map:generate src="docs/samples/sites/{1}_apache_org.xml"/>
	<!-- the line above is the original one
    <map:transform src="stylesheets/sites/{1}_apache_org-html.xsl"/>
		 but you can replace it with this one  -->
    <map:transform src="stylesheets/sites/same_stylesheet_for_all_sites-html.xsl"/>
    <map:serialize/>
   </map:match>


> I know  I could handle the logicsheet  like a taglib and  make a new
> entry in the cocoon.xconf. Is there another way ?

I don't think so ;)

--Arnaud

---------------------------------------------------------------------
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