Stephan Michels wrote:

Am Mo, den 02.02.2004 schrieb Nicola Ken Barozzi um 12:11:

Stephan Michels wrote:

On Fri, 23 Jan 2004, Nicola Ken Barozzi wrote:


How come with the wiki stuff with

{{{
source
code
}}}
...
Example:

http://cvs.apache.org/viewcvs.cgi/incubator/site/whoweare.cwiki?view=markup

renders as

http://incubator.apache.org/whoweare.html

After 2 days finally I got Cocoon running under VMWare with WinXp...


But the wiki example works as expected. I added a link to get the
content as xdoc.

I tested it again, and -hold on- your example works as expected.


The code part is:

        boolean didThisWork() {
          return !failed();
        }

But then, I use this pipeline in the chaperon sitemap.xmap:

   <map:match pattern="wiki/*.html">
    <map:generate  type="text"      src="wiki/{1}.txt" />
    <map:transform type="lexer"   src="cocoon:/wiki.xlex"/>
    <map:transform type="parser"  src="cocoon:/wiki.xgrm">
     <map:parameter name="failsafe" value="true"/>
    </map:transform>
    <map:transform     src="stylesheets/wiki2xdoc.xsl"/>
    <map:serialize type="xml"/>
   </map:match>

And in the document (not well formet, the top element is missing, but it still outputs) I find this:

        boolean didThisWork() {&#13;
          return !failed();&#13;
        }&#13;

So, I tell myself, let's see what the parser outputs with:

   <map:match pattern="wiki/*.html">
    <map:generate  type="text"      src="wiki/{1}.txt" />
    <map:transform type="lexer"   src="cocoon:/wiki.xlex"/>
    <map:transform type="parser"  src="cocoon:/wiki.xgrm"/>
    <map:serialize type="xml"/>
   </map:match>

I get (including the surrounding tag):

<source line="83" column="1">{{{&#13;
        boolean didThisWork() {&#13;
          return !failed();&#13;
        }&#13;
}}}</source>

It seems that the text parser does something different and includes #&13; to the contents. Any idea, other then removing all #%13;s in the <source> tags?

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------



Reply via email to