Here is my confusion sources compiled with Cocoon2 CVS HEAD branch. It seems that in this really simple case View MUST work, but it doesnt - I'm still getting welcome1.xsl transformation.
I feel that I missed something big. Thanks for help, Alex. ----- Original Message ----- From: "Alexander Smirnoff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 12:28 PM Subject: Re: Look-and-feel approach with views > I'm using 2.0rc1, but even if I put label="xsltran" into <generator...> > declaration this doesnt work either... > > I feel that I misundersatnd the concept. It seems, for example, in webapp > sitemap.xconf (in HEAD branch) the view declaration like: > > <map:view name="links" from-position="last"> > <map:serialize type="links"/> > </map:view> > > never executes... Otherwise it supposed to be executed for every pipline > after last component in pipline... So I'm really confused... > > Thanks, > Alex. > > > On Fri, 23 Nov 2001, Alexander Smirnoff wrote: > > > > > Hi everyone, > > > > > > I'm trying to use Views for setting look and feel based on specific user > > > logged on the web site. So far I cannot even make very basic view > working: > > > > > > <map:views> > > > <map:view from-label="xsltran" name="xsltran"> > > > <map:transform src="stylesheets/xsl/welcome.xsl"/> > > > <map:serialize/> > > > </map:view> > > > </map:views> > > > > > > <map:pipelines> > > > <map:pipeline> > > > <map:match pattern="site/*"> > > > ... > > > <map:match pattern="site/workframe"> > > > <map:label name="xsltran"> > > > <map:generate > src="content/xml/welcome.xml"/> > > > </map:label> > > > <map:transform > src="stylesheets/xsl/welcome1.xsl"/> > > > <map:serialize/> > > > </map:match> > > > ... > > > </map:match> > > > </map:pipeline> > > > <map:pipelines> > > > > What version are you using? In the current 2.0 and HEAD branches of the > > CVS there isn't a map:label anymore. So you need to specify it this way: > > > > <map:match pattern="site/workframe"> > > <map:generate src="content/xml/welcome.xml" label"xsltran"/> > > <map:transform src="stylesheets/xsl/welcome1.xsl"/> > > <map:serialize/> > > </map:match> > > > > Giacomo > > > > > > > > this falls through "welcome1.xsl", but not through "welcome.xsl" which > > > suppose to be called from the "xsltran" view... > > > > > > What is my mistake? > > > > > > Thanks, > > > Alexander Smirnoff > > > > > > > > > --------------------------------------------------------------------- > > > 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: <[EMAIL PROTECTED]> > > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> >
<?xml version="1.0" encoding="ISO-8859-1"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <!-- =========================== Components ================================ --> <map:components> <map:generators default="file"> <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator"/> </map:generators> <map:transformers default="xslt"> <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"> <use-store>true</use-store> <use-request-parameters>false</use-request-parameters> <use-browser-capabilities-db>false</use-browser-capabilities-db> </map:transformer> </map:transformers> <map:serializers default="html"> <map:serializer mime-type="text/html" name="html" src="org.apache.cocoon.serialization.HTMLSerializer"/> </map:serializers> <map:matchers default="wildcard"> <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/> </map:matchers> </map:components> <!-- =========================== Views =================================== --> <map:views> <map:view from-label="xsltran" name="xsltran"> <map:transform src="stylesheets/xsl/welcome.xsl"/> <map:serialize/> </map:view> </map:views> <!-- =========================== Pipelines ================================= --> <map:pipelines> <map:pipeline> <map:match pattern="home"> <map:generate src="content/xml/welcome.xml" label="xsltran"/> <map:transform src="stylesheets/xsl/welcome1.xsl"/> <map:serialize/> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> <!-- end of file -->
sitemap_xmap.java
Description: Binary data
--------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>