[ http://issues.apache.org/jira/browse/COCOON-1639?page=all ]

Andrew Stevens updated COCOON-1639:
-----------------------------------

    Attachment: neko.properties

To test out various neko properties, I did a couple of unit tests for the neko 
generator.  Unfortunately, all they really showed was how troublesome nekohtml 
is :-(  For example, with 
  <script><!--
    function doNothing() { return 0; }
  //--></script>
in the source file, despite setting the property
  http\://cyberneko.org/html/features/scanner/script/strip-comment-delims=true
(" Specifies whether the scanner should strip HTML comment delimiters (i.e. 
"<!--" and "-->") from <script> element content.") I still got the comment 
delimiters in the output.  I also discovered it "fixes" <b><i>foo</b></i> as 
<b><i>foo</i></b><i/> rather than just the <b><i>foo</i></b> I was expecting.  
And when I omitted a closing </h1> tag, leaving <h1>foo<p>bar..., Neko didn't 
close it until the end of the body, even though IIRC headings can only contain 
inline elements and <p> is a block element.  Or maybe that's only the case for 
4.01 Strict?  At any rate, there was also the fact that when I set the various 
doctype properties, although I'd specified "false" for the "validate" parameter 
on the xml-parser component something still read the strict.dtd from w3.org and 
then complained that it contained syntax errors!

All in all, I don't think I'll bother uploading my test cases here ;-)  
However, in the course of all this I did discover that escaping the colons in 
the properties file is indeed necessary, so here's an updated neko.properties 
for the WEB-INF directory.


> [patch] NekoHTMLTransformer
> ---------------------------
>
>          Key: COCOON-1639
>          URL: http://issues.apache.org/jira/browse/COCOON-1639
>      Project: Cocoon
>         Type: Improvement
>   Components: Blocks: HTML
>     Versions: 2.1.8
>  Environment: Operating System: All
> Platform: All
>     Reporter: Andrew Stevens
>     Assignee: Jean-Baptiste Quenot
>     Priority: Minor
>  Attachments: NekoHTMLTransformer.java, NekoHTMLTransformer.java, cocoon.log, 
> combined.diff, htmlblock.diff, neko.properties, neko.properties, samples.diff
>
> The html block contains HTMLGenerator, HTMLTransformer, NekoHTMLGenerator 
> and...
> hey, where's the NekoHTMLTransformer?
> So, just to complete the set, here's one I prepared earlier :-)
> I've also included an (empty) neko.properties configuration file, and updated
> the neko generator's setup bits to allow for setting parser features as well 
> as
> properties.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to