[
http://jira.codehaus.org/browse/DOXIA-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231884#action_231884
]
Sergey Shikov commented on DOXIA-403:
-------------------------------------
>From this page:
http://maven.apache.org/doxia/doxia/doxia-modules/doxia-module-fo/usage.html
> FO module creating non-wellformed xls-fo output
> ------------------------------------------------
>
> Key: DOXIA-403
> URL: http://jira.codehaus.org/browse/DOXIA-403
> Project: Maven Doxia
> Issue Type: Bug
> Components: Module - FO
> Affects Versions: 1.1.3
> Reporter: Sergey Shikov
>
> This code, copy&pasted from Doxia site, producing non-wellformed FO document:
> Java:
> {code}
> try {
> // Open input apt document:
> StringReader source= new StringReader("h1. test");
> // Create FO sink:
> Writer writer = new StringWriter();
> FoSink fosink= new FoSink(writer);
> Parser parser= new ConfluenceParser();
> parser.parse(source, fosink);
> // close streams
> fosink.close();
> source.close();
> System.out.println(writer.toString());
> } catch (ParseException e) {
> e.printStackTrace();
> } catch (IOException e) {
> e.printStackTrace();
> }
> {code}
> Result:
> {code:xml}
> <fo:page-sequence initial-page-number="0" master-reference="body">
> <fo:flow flow-name="xsl-region-body">
> <fo:block white-space-collapse="true" line-height="12pt"
> font-family="Garamond,serif" font-size="11pt">
> <fo:block space-after="6pt" font-weight="bold" space-before="18pt"
> font-family="Helvetica,sans-serif" keep-with-next="always" color="#000000"
> font-size="12pt">1 test</fo:block>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> {code}
> No open tag fo:root in document.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira