Jakob, caching is a science in itself... Cocoon relies heavily on caching, which, at development time, may be a nuisance.
AFAIK, the use of caching is the same whether you're calling an URI from a browser or from command-line. Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: Skansen [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 9:15 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Serializig and LF: Problem > > > Yes My full name is Jakob. > > Is it so that Cocoon use the cache in the Work Directory when working with the >command line tool. > > //Jakob > ----- Original Message ----- > From: "Luca Morandini" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, September 28, 2002 12:27 AM > Subject: RE: Serializig and LF: Problem > > > > Jakob (is that your name ?), > > > > I meant the Cocoon's cache, not the browser's one. > > > > Best regards, > > > > --------------------------------------------- > > Luca Morandini > > GIS Consultant > > [EMAIL PROTECTED] > > http://utenti.tripod.it/lmorandini/index.html > > --------------------------------------------- > > > > > > > -----Original Message----- > > > From: Skansen [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, September 28, 2002 12:08 AM > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > Subject: Re: Serializig and LF: Problem > > > > > > > > > It can't be the Cache because i used the Comandline. > > > > > > //Jakob > > > ----- Original Message ----- > > > From: "Luca Morandini" <[EMAIL PROTECTED]> > > > To: "Cocoon-users" <[EMAIL PROTECTED]> > > > Sent: Thursday, September 26, 2002 10:35 PM > > > Subject: RE: Serializig and LF: Problem > > > > > > > > > > Skansen, > > > > > > > > hold on a second... > > > > > > > > The indent tag recognizes only the "yes" value and the "non yes" values... I >mean, whatever you put into it would do > > > the trick (as > > > > long as it is not "yes"): if you try "foo" it will work just as well as "no" >or "1". > > > > > > > > Why it didn't work before ? Because you forgot to "touch" the XML source >document after changing the indent tag, hence, > > > the result > > > > was retrieved from cache: don't worry, I did the same mistake myself :( > > > > > > > > Ok, now I think this has been solved for good. > > > > > > > > Best regards, > > > > > > > > --------------------------------------------- > > > > Luca Morandini > > > > GIS Consultant > > > > [EMAIL PROTECTED] > > > > http://utenti.tripod.it/lmorandini/index.html > > > > --------------------------------------------- > > > > > > > > > > > > > -----Original Message----- > > > > > From: Skansen [mailto:[EMAIL PROTECTED]] > > > > > Sent: Thursday, September 26, 2002 8:19 PM > > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > > > Subject: Re: Serializig and LF: Problem > > > > > > > > > > > > > > > Thanks :) > > > > > > > > > > The tip on indent dit it but it should be put in the HTML serializer as ><indent>1</indent> > > > > > > > > > > Still got a one loose end were do it put "http://www.w3.org/TR/xslt#strip"? > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > Jakob > > > > > > > > > > > > > > > P.S > > > > > sitemap.xmp Before <indent>1</indent> was added to the serializer. > > > > > > > > > > --- Transformer --- > > > > > <map:transformers default="xslt"> > > > > > <map:transformer name="xslt" >src="org.apache.cocoon.transformation.TraxTransformer"> > > > > > <use-request-parameters>false</use-request-parameters> > > > > > <use-browser-capabilities-db>false</use-browser-capabilities-db> > > > > > </map:transformer> > > > > > </map:transformers> > > > > > > > > > > --- Serializer --- > > > > > <map:serializer name="html" mime-type="text/html" >src="org.apache.cocoon.serialization.HTMLSerializer"> > > > > > <encoding>ISO-8859-1</encoding> > > > > > </map:serializer> > > > > > > > > > > --- Resource --- > > > > > <map:resource name="skinit"> > > > > > <map:transform src="stylesheets/html/{type}.xsl"> > > > > > <map:parameter name="resource" value="{resource}"/> > > > > > </map:transform> > > > > > <map:serialize/> > > > > > </map:resource> > > > > > > > > > > --- part of Pipline --- > > > > > > > > > > <map:match pattern="nav-*.xml"> > > > > > <map:generate src="xdocs/{1}.xml"/> > > > > > <map:call resource="skinit"> > > > > > <map:parameter name="resource" value="{1}"/> > > > > > <map:parameter name="type" value="tree2menu"/> > > > > > </map:call> > > > > > </map:match> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: "Luca Morandini" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Thursday, September 26, 2002 3:44 PM > > > > > Subject: RE: Serializig and LF: Problem > > > > > > > > > > > > > > > > <snip> > > > > > > > Must admit that I have not noticed that from the first sight. :) > > > > > > </snip> > > > > > > > > > > > > Vadim, you corrected me many times, let me return the favour once in a >while ;) > > > > > > > > > > > > <snip> > > > > > > > But I would try indent=no anyway. > > > > > > </snip> > > > > > > > > > > > > I tried that to no avail (it was my first thought, too). > > > > > > > > > > > > <snip> > > > > > > > >Anyway, a "span" will save the day :) > > > > > > > > > > > > > > > > > > > > > > Will it? There should be no difference in behaviour - which means that > > > > > > > this is an issue with serializer. > > > > > > </snip> > > > > > > > > > > > > I guess it will, since <span> does't break HTML text as <div> does... >though it is included in a <td>... hmmm... don't > > > > > really know. > > > > > > > > > > > > Anyway, the behaviour of Xalan (or the Serializer) begs further >investigations. > > > > > > > > > > > > Best regards, > > > > > > > > > > > > --------------------------------------------- > > > > > > Luca Morandini > > > > > > GIS Consultant > > > > > > [EMAIL PROTECTED] > > > > > > http://utenti.tripod.it/lmorandini/index.html > > > > > > --------------------------------------------- > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > > > > > > > Sent: Thursday, September 26, 2002 3:29 PM > > > > > > > To: [EMAIL PROTECTED] > > > > > > > Subject: Re: Serializig and LF: Problem > > > > > > > > > > > > > > > > > > > > > Luca Morandini wrote: > > > > > > > > > > > > > > >Vadim, > > > > > > > > > > > > > > > >I think the problem is not related to indentation, since the HTML >output appears to have no indentation; > > > moreover, I presume > > > > > > > >strip-space will be of no use, since there are no spaces to strip in >the input elements. > > > > > > > > > > > > > > > >Look, the XSL fragment, according to Skansen, is: > > > > > > > > > > > > > > > ><td class="mHi"><div class="mHsp"><a><xsl:attribute > > > > > > > >>name="href"><xsl:text>index.html</xsl:text></xsl:attribute><b>Home</b></a></div></td> > > > > > > > > > > > > > > > > > > > > > > Must admit that I have not noticed that from the first sight. :) > > > > > > > But I would try indent=no anyway. > > > > > > > > > > > > > > > > > > > > > >And the result is: > > > > > > > > > > > > > > > ><td class="mHi"> > > > > > > > ><div class="mHsp"> > > > > > > > ><a href="index.html"><b>Home</b></a> > > > > > > > ></div> > > > > > > > ></td> > > > > > > > > > > > > > > > >Which, IMHO, cannot be, given the afore-mentioned XSL fragment: >therefore this might be a Xalan bug. > > > > > > > > > > > > > > > >Anyway, a "span" will save the day :) > > > > > > > > > > > > > > > > > > > > > > Will it? There should be no difference in behaviour - which means that > > > > > > > this is an issue with serializer. > > > > > > > > > > > > > > Vadim > > > > > > > > > > > > > > > > > > > > > >Best regards, > > > > > > > > > > > > > > > >--------------------------------------------- > > > > > > > > Luca Morandini > > > > > > > > GIS Consultant > > > > > > > > [EMAIL PROTECTED] > > > > > > > >http://utenti.tripod.it/lmorandini/index.html > > > > > > > >--------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>-----Original Message----- > > > > > > > >>From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > > > > > > > >>Sent: Thursday, September 26, 2002 2:41 PM > > > > > > > >>To: [EMAIL PROTECTED] > > > > > > > >>Subject: Re: Serializig and LF: Problem > > > > > > > >> > > > > > > > >> > > > > > > > >>Vadim Gritsenko wrote: > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >>>Skansen wrote: > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>>>Hello > > > > > > > >>>> > > > > > > > >>>>When using the XSL stylesheet below cocoon gives the output below. > > > > > > > >>>> > > > > > > > >>>>The problem is that after a <td> or a <td><div> i can't have a LF or >CR. > > > > > > > >>>>If there is one i get aditional height in the row. (which is bad) > > > > > > > >>>> > > > > > > > >>>>What i would like to get is: > > > > > > > >>>> > > > > > > > >>>><td> > > > > > > > >>>><div><a>...<a/></div> > > > > > > > >>>> > > > > > > > >>>>Any idea how. > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>1. Put this on one line http://www.w3.org/TR/xslt#strip > > > > > > > > > > > > >>>2. http://www.w3.org/TR/xslt#strip > > > > > > > >>>Use strip-space > > > > > > > >>> > > > > > > > >>> > > > > > > > >>Another thing to check is that html serializer has indent set to no: > > > > > > > >> > > > > > > > >><indent>no</indent> > > > > > > > >> > > > > > > > >>See > > > > > > > >>>http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT > > > > > > > >> > > > > > > > >>Vadim > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >>>>I'm using cocoon from 20020826 on vm1.3 I tried the output in Mozilla > > > > > > > >>>>1.1 and IE 5.5. With a stylesheet and <html>.......</html> around it. > > > > > > > >>>> > > > > > > > >>>>P.S > > > > > > > >>>>Cocoon reverse the attributes on output :) > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>It's Xalan or Xerces. > > > > > > > >>> > > > > > > > >>>Vadim > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>> > > > > > > > >>>>Jakob > > > > > > > >>>> > > > > > > > >>>>---->XSL Transformation > > > > > > > >>>> > > > > > > > >>>><?xml version="1.0"?> > > > > > > > >>>><xsl:stylesheet version="1.0" > > > > > > > >>>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > > > > >>>><xsl:template match="/"> > > > > > > > >>>> <xsl:apply-templates/> > > > > > > > >>>></xsl:template> > > > > > > > >>>> > > > > > > > >>>><xsl:template match="TREE"> > > > > > > > >>>><div id="header"> > > > > > > > >>>> <!-- Navigation Bar --> > > > > > > > >>>> <table width="759" cellspacing="0" cellpadding="0" border="0" > > > > > > > >>>>height="17" class="sM" bgcolor="#336699"> > > > > > > > >>>> <tr><td width="759" class="mH" > > > > > > > > >>>> <div class="mHtSP"> > > > > > > > >>>> <table width="455" cellspacing="0" cellpadding="0" border="0" > > > > > > > >>>>height="15"> > > > > > > > >>>> <tr> > > > > > > > >>>> <td class="mHi"><div class="mHsp"><a><xsl:attribute > > > > > > > >>>>>name="href"><xsl:text>index.html</xsl:text></xsl:attribute><b>Home</b></a></div></td> > > > > > > > >>>> > > > > > > > >>>> <xsl:for-each select="NODE"> > > > > > > > >>>> <td class="mHi"><div class="mHsp"><a><xsl:attribute > > > > > > > >>>>name="href"><xsl:text>xb-</xsl:text><xsl:value-of > > > > > > > >>>>>select="TABNAME"/><xsl:text>.html</xsl:text></xsl:attribute><b><xsl:value-of > > > > > > > >>>>select="TABNAME"/></b></a></div></td> > > > > > > > >>>> </xsl:for-each> > > > > > > > >>>> </tr> > > > > > > > >>>> </table> > > > > > > > >>>> </div> > > > > > > > >>>> </td></tr> > > > > > > > >>>> </table> > > > > > > > >>>></div> > > > > > > > >>>></xsl:template> > > > > > > > >>>> > > > > > > > >>>></xsl:stylesheet> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>>---------> Output from Cocoon > > > > > > > >>>> > > > > > > > >>>><div id="header"> > > > > > > > >>>><table bgcolor="#336699" class="sM" height="17" border="0" > > > > > > > >>>>cellpadding="0" cellspacing="0" width="759"> > > > > > > > >>>><tr> > > > > > > > >>>><td class="mH" width="759"> > > > > > > > >>>><div class="mHtSP"> > > > > > > > >>>><table height="15" border="0" cellpadding="0" cellspacing="0" > > > > > > > >>>>width="455"> > > > > > > > >>>><tr> > > > > > > > >>>><td class="mHi"> > > > > > > > >>>><div class="mHsp"> > > > > > > > >>>><a href="index.html"><b>Home</b></a> > > > > > > > >>>></div> > > > > > > > >>>></td> > > > > > > > >>>></tr> > > > > > > > >>>></table> > > > > > > > >>>></div> > > > > > > > >>>></td> > > > > > > > >>>></tr> > > > > > > > >>>></table> > > > > > > > >>>></div> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > Please check that your question has not already been answered in the > > > > > > > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.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/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>