Author: ltheussl
Date: Fri May 15 12:50:54 2009
New Revision: 775113
URL: http://svn.apache.org/viewvc?rev=775113&view=rev
Log:
fix usage docs
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/site/xdoc/usage.xml
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/site/xdoc/usage.xml
URL:
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/site/xdoc/usage.xml?rev=775113&r1=775112&r2=775113&view=diff
==============================================================================
---
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/site/xdoc/usage.xml
(original)
+++
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/site/xdoc/usage.xml
Fri May 15 12:50:54 2009
@@ -82,8 +82,7 @@
e.printStackTrace();
}
}
-}
- </source>
+}</source>
</subsection>
@@ -102,13 +101,14 @@
FoAggregateSink fosink = new FoAggregateSink(
new FileWriter( new File( "out", "aggregate.fo" ) ) );
+ // getDocumentModel() should return a DocumentModel object
+ fosink.setDocumentModel( getDocumentModel() );
+
fosink.beginDocument();
- // getMeta() should return a DocumentMeta object
- fosink.coverPage( getMeta() );
+ fosink.coverPage();
- // getToc() should return a DocumentTOC object
- fosink.toc( getToc() );
+ fosink.toc();
// first document
FileReader source1 =
@@ -124,8 +124,7 @@
fosink.setDocumentTitle( "Document 2" );
parser.parse( source2, fosink );
- fosink.endDocument();
- </source>
+ fosink.endDocument();</source>
</subsection>