You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by bu...@apache.org on 2012/10/23 17:05:47 UTC

svn commit: r835892 [8/17] - in /websites/staging/xmlgraphics/trunk/content: ./ batik/ batik/dev/ batik/tools/ batik/using/ batik/using/scripting/ commons/ fop/ fop/0.95/ fop/1.0/ fop/1.1/ fop/dev/ fop/dev/design/ fop/trunk/

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/running.html Tue Oct 23 15:05:41 2012
@@ -331,7 +331,7 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="require">System Requirements</h1>
+<h1 id="system-requirements-wzxhzdk2wzxhzdk3">System Requirements  <a id="#require"></a></h1>
 <p>The following software must be installed:</p>
 <ul>
 <li>
@@ -374,13 +374,13 @@ $(document).ready(function () {
 <ul>
 <li>If you will be using FOP to process SVG, you must do so in a graphical environment. See <a href="graphics.html#batik">FOP: Graphics (Batik)</a> for details.</li>
 </ul>
-<h1 id="install">Installation</h1>
-<h2 id="install-instruct">Instructions</h2>
+<h1 id="installation-wzxhzdk4wzxhzdk5">Installation  <a id="#install"></a></h1>
+<h2 id="instructions-wzxhzdk6wzxhzdk7">Instructions # <a id="#install-instruct"></a></h2>
 <p>Basic FOP installation consists of first unzipping the <code>.gz</code> file that is the distribution medium, then unarchiving the resulting <code>.tar</code> file in a directory/folder that is convenient on your system. Please consult your operating system documentation or Zip application software documentation for instructions specific to your site.</p>
-<h2 id="install-problems">Problems</h2>
+<h2 id="problems-wzxhzdk8wzxhzdk9">Problems # <a id="#install-problems"></a></h2>
 <p>Some Mac OSX users have experienced filename truncation problems using Stuffit to unzip and unarchive their distribution media. This is a legacy of older Mac operating systems, which had a 31-character pathname limit. Several Mac OSX users have recommended that Mac OSX users use the shell command <code>tar -xzf</code> instead.</p>
-<h1 id="standalone-start">Starting FOP as a Standalone Application</h1>
-<h2 id="fop-script">Using the fop script or batch file</h2>
+<h1 id="starting-fop-as-a-standalone-application-wzxhzdk10wzxhzdk11">Starting FOP as a Standalone Application  <a id="#standalone-start"></a></h1>
+<h2 id="using-the-fop-script-or-batch-file-wzxhzdk12wzxhzdk13">Using the fop script or batch file # <a id="#fop-script"></a></h2>
 <p>The usual and recommended practice for starting FOP from the command line is to run the batch file fop.bat (Windows) or the shell script fop (Unix/Linux). These scripts require that the environment variable JAVA_HOME be set to a path pointing to the appropriate Java installation on your system. Macintosh OSX includes a Java environment as part of its distribution. We are told by Mac OSX users that the path to use in this case is <code>/Library/Java/Home</code> . <strong>Caveat:</strong> We suspect that, as Apple releases new Java environments and as FOP upgrades the minimum Java requirements, the two will inevitably not match on some systems. Please see <a href="http://developer.apple.com/java/faq">Java on Mac OSX FAQ</a> for information as it becomes available.</p>
 <p>USAGE
 Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl|-ps|-txt|-at [mime]|-print] <outfile>
@@ -459,20 +459,20 @@ Fop [options] [-fo|-xml] infile [-xsl fi
   fop foo.fo -print
   fop foo.fo -awt
 PDF encryption is only available if FOP was compiled with encryption support <strong>and</strong> if compatible encryption support is available at run time. Currently, only the JCE is supported. Check the <a href="pdfencryption.html">Details</a> .</p>
-<h2 id="your-own-script">Writing your own script</h2>
+<h2 id="writing-your-own-script-wzxhzdk17wzxhzdk18">Writing your own script # <a id="#your-own-script"></a></h2>
 <p>FOP's entry point for your own scripts is the class <code>org.apache.fop.cli.Main</code> . The general pattern for the command line is: <code>java -classpath &lt;CLASSPATH&gt;
         org.apache.fop.cli.Main &lt;arguments&gt;</code> . The arguments consist of the options and infile and outfile specifications as shown above for the standard scripts. You may wish to review the standard scripts to make sure that you get your environment properly configured.</p>
-<h2 id="jar-option">Running with java's -jar option</h2>
+<h2 id="running-with-javas-jar-option-wzxhzdk19wzxhzdk20">Running with java's -jar option # <a id="#jar-option"></a></h2>
 <p>As an alternative to the start scripts you can run <code>java
         -jar path/to/build/fop.jar &lt;arguments&gt;</code> , relying on FOP to build the classpath for running FOP dynamically, see <a href="#dynamical-classpath">below</a> . If you use hyphenation, you must put <code>fop-hyph.jar</code> in the <code>lib</code> directory.</p>
 <p>You can also run <code>java -jar path/to/fop.jar
       &lt;arguments&gt;</code> , relying on the <code>Class-Path</code> entry in the manifest file. This works if you put <code>fop.jar</code> and all jar files from the <code>lib</code> directory in a single directory. If you use hyphenation, you must also put <code>fop-hyph.jar</code> in that directory.</p>
 <p>In both cases the arguments consist of the options and infile and outfile specifications as shown above for the standard scripts.</p>
-<h2 id="dynamical-classpath">FOP's dynamical classpath construction</h2>
+<h2 id="fops-dynamical-classpath-construction-wzxhzdk21wzxhzdk22">FOP's dynamical classpath construction # <a id="#dynamical-classpath"></a></h2>
 <p>If FOP is started without a proper classpath, it tries to add its dependencies dynamically. If the system property <code>fop.home</code> contains the name of a directory, then FOP uses that directory as the base directory for its search. Otherwise the current working directory is the base directory. If the base directory is called <code>build</code> , then its parent directory becomes the base directory.</p>
 <p>FOP expects to find <code>fop.jar</code> in the <code>build</code> subdirectory of the base directory, and adds it to the classpath. Subsequently FOP adds all <code>jar</code> files in the lib directory to the classpath. The lib directory is either the <code>lib</code> subdirectory of the base directory, or, if that does not exist, the base directory itself.</p>
 <p>If the system property <code>fop.optional.lib</code> contains the name of a directory, then all <code>jar</code> files in that directory are also added to the classpath. See the methods <code>getJARList</code> and <code>checkDependencies</code> in <code>org.apache.fop.cli.Main</code> .</p>
-<h1 id="check-input">Using Xalan to Check XSL-FO Input</h1>
+<h1 id="using-xalan-to-check-xsl-fo-input-wzxhzdk23wzxhzdk24">Using Xalan to Check XSL-FO Input  <a id="#check-input"></a></h1>
 <p>FOP sessions that use -xml and -xsl input instead of -fo input are actually controlling two distinct conversions: Tranforming XML to XSL-FO, then formatting the XSL-FO to PDF (or another FOP output format). Although FOP controls both of these processes, the first is included merely as a convenience and for performance reasons. Only the second is part of FOP's core processing. If a user has a problem running FOP, it is important to determine which of these two processes is causing the problem. If the problem is in the first process, the user's stylesheet is likely the cause. The FOP development team does not have resources to help with stylesheet issues, although we have included links to some useful <a href="../resources.html#specs">Specifications</a> and <a href="../resources.html#articles">Books/Articles</a> . If the problem is in the second process, FOP may have a bug or an unimplemented feature that does require attention from the FOP development team.
 The user is always responsible to provide correct XSL-FO code to FOP.
 In the case of using -xml and -xsl input, although the user is responsible for the XSL-FO code that is FOP's input, it is not visible to the user. To make the intermediate FO file visible, the FOP distribution includes the "-foout" option which causes FOP to run only the first (transformation) step, and write the results to a file. (See also the Xalan command-line below)
@@ -480,7 +480,7 @@ When asking for help on the FOP mailing 
 The -foout option works the same way as if you would call the <a href="http://xml.apache.org/xalan-j/commandline.html">Xalan command-line</a> :</p>
 <p><code>java org.apache.xalan.xslt.Process -IN xmlfile -XSL file -OUT outfile</code> </p>
 <p>Note that there are some subtle differences between the FOP and Xalan command-lines.</p>
-<h1 id="memory">Memory Usage</h1>
+<h1 id="memory-usage-wzxhzdk25wzxhzdk26">Memory Usage  <a id="#memory"></a></h1>
 <p>FOP can consume quite a bit of memory, even though this has been continually improved. This is partly inherent to the formatting process and partly caused by implementation choices. All FO processors currently on the market have memory problems with certain layouts.</p>
 <p>If you are running out of memory when using FOP, here are some ideas that may help:</p>
 <ul>
@@ -497,7 +497,7 @@ The -foout option works the same way as 
 <p>Use multiple page sequences. FOP starts rendering after the end of a page sequence is encountered. While the actual rendering is done page-by-page, some additional memory is freed after the page sequence has been rendered. This can be substantial if the page sequence contains lots of FO elements.</p>
 </li>
 </ul>
-<h1 id="problems">Problems</h1>
+<h1 id="problems-wzxhzdk27wzxhzdk28">Problems  <a id="#problems"></a></h1>
 <p>If you have problems running FOP, please see the <a href="../gethelp.html">"How to get Help" page</a> .</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/servlets.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/servlets.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/servlets.html Tue Oct 23 15:05:41 2012
@@ -331,9 +331,9 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
       	<div class="section-content"><p><subtitle>How to use Apache&trade; FOP in a Servlet</subtitle><version>$Revision: 1298724 $</version></p>
-<h1 id="overview">Overview</h1>
+<h1 id="overview-wzxhzdk7wzxhzdk8">Overview  <a id="#overview"></a></h1>
 <p>This page discusses topic all around using Apache&trade; FOP in a servlet environment.</p>
-<h1 id="example-servlets">Example Servlets in the FOP distribution</h1>
+<h1 id="example-servlets-in-the-fop-distribution-wzxhzdk10wzxhzdk11">Example Servlets in the FOP distribution  <a id="#example-servlets"></a></h1>
 <p>In the directory {fop-dir}/src/java/org/apache/fop/servlet, you'll find a working example of a FOP-enabled servlet.</p>
 <p>The servlet is automatically built when you build Apache FOP using the supplied Ant script. After building the servlet, drop fop.war into the webapps directory of Apache Tomcat (or any other web container). Then, you can use URLs like the following to generate PDF files:</p>
 <ul>
@@ -346,9 +346,9 @@ $(document).ready(function () {
 </ul>
 <p>The source code for the servlet can be found under {fop-dir}/src/java/org/apache/fop/servlet/FopServlet.java.
 This example servlet should not be used on a public web server connected to the Internet as it does not contain any measures to prevent Denial-of-Service-Attacks. It is provided as an example and as a starting point for your own servlet.</p>
-<h1 id="servlet">Create your own Servlet</h1>
+<h1 id="create-your-own-servlet-wzxhzdk12wzxhzdk13">Create your own Servlet  <a id="#servlet"></a></h1>
 <p>This section assumes you are familiar with <a href="embedding.html">embedding FOP</a> .</p>
-<h2 id="minimal-servlet">A minimal Servlet</h2>
+<h2 id="a-minimal-servlet-wzxhzdk14wzxhzdk15">A minimal Servlet # <a id="#minimal-servlet"></a></h2>
 <p>Here is a minimal code snippet to demonstrate the basics:
 private FopFactory fopFactory = FopFactory.newInstance();
 private TransformerFactory tFactory = TransformerFactory.newInstance();</p>
@@ -365,7 +365,7 @@ private TransformerFactory tFactory = Tr
         throw new ServletException(ex);
     }
 }There are numerous problems with the code snippet above. Its purpose is only to demonstrate the basic concepts. See below for details.</p>
-<h2 id="xslt">Adding XSL tranformation (XSLT)</h2>
+<h2 id="adding-xsl-tranformation-xslt-wzxhzdk16wzxhzdk17">Adding XSL tranformation (XSLT) # <a id="#xslt"></a></h2>
 <p>A common requirement is to transform an XML source to XSL-FO using an XSL transformation. It is recommended to use JAXP for this task. The following snippet shows the basic code:
 private FopFactory fopFactory = FopFactory.newInstance();
 private TransformerFactory tFactory = TransformerFactory.newInstance();</p>
@@ -405,9 +405,9 @@ private TransformerFactory tFactory = Tr
 <p>The <code>Source</code> instance used above is simply an example. If you have to read the XML from a string, supply a <code>new StreamSource(new
           StringReader(xmlstring))</code> . Constructing and reparsing an XML string is generally less desirable than using a SAXSource if you generate your XML. You can alternatively supply a DOMSource as well. You may also use dynamically generated XSL if you like.</p>
 <p>Because you have an explicit <code>Transformer</code> object, you can also use it to explicitely set parameters for the transformation run.</p>
-<h2 id="cfg">Custom configuration</h2>
+<h2 id="custom-configuration-wzxhzdk18wzxhzdk19">Custom configuration # <a id="#cfg"></a></h2>
 <p>You can easily set up your own FOUserAgent as demonstrated on the <a href="embedding.html">Embedding page</a> .</p>
-<h2 id="performance">Improving performance</h2>
+<h2 id="improving-performance-wzxhzdk20wzxhzdk21">Improving performance # <a id="#performance"></a></h2>
 <p>There are several options to consider:</p>
 <ul>
 <li>
@@ -418,7 +418,7 @@ private TransformerFactory tFactory = Tr
 </li>
 </ul>
 <p>Of course, the <a href="embedding.html#performance">performance hints from the Embedding page</a> apply here, too.</p>
-<h2 id="uriresolver">Accessing resources in your web application</h2>
+<h2 id="accessing-resources-in-your-web-application-wzxhzdk22wzxhzdk23">Accessing resources in your web application # <a id="#uriresolver"></a></h2>
 <p>Often, you will want to use resources (stylesheets, images etc.) which are bundled with your web application. FOP provides a URIResolver implementation that lets you access files via the Servlet's ServletContext. The class is called <code>org.apache.fop.servlet.ServletContextURIResolver</code> .</p>
 <p>Here's how to set it up in your servlet. Instantiate a new instance in the servlet's init() method:</p>
 <div class="codehilite"><pre><span class="sr">/** URIResolver for use by this servlet */</span>
@@ -458,7 +458,7 @@ Source xsltSrc = this.uriResolver.resolv
     "servlet-context:/xslt/mystylesheet.xsl", null);
 Transformer transformer = this.transFactory.newTransformer(xsltSrc);
 transformer.setURIResolver(this.uriResolver);</p>
-<h1 id="ie">Notes on Microsoft Internet Explorer</h1>
+<h1 id="notes-on-microsoft-internet-explorer-wzxhzdk24wzxhzdk25">Notes on Microsoft Internet Explorer  <a id="#ie"></a></h1>
 <p>Some versions of Internet Explorer will not automatically show the PDF or call the servlet multiple times. These are well-known limitations of Internet Explorer and are not a problem of the servlet. However, Internet Explorer can still be used to download the PDF so that it can be viewed later. Here are some suggestions in this context:</p>
 <ul>
 <li>
@@ -473,13 +473,13 @@ transformer.setURIResolver(this.uriResol
 <p>Cache in the server. It may help to include a parameter in the URL which has a timestamp as the value min order to decide whether a request is repeated. IEx is reported to retrieve a document up to three times, but never more often.</p>
 </li>
 </ul>
-<h1 id="servlet-engine">Servlet Engines</h1>
+<h1 id="servlet-engines-wzxhzdk26wzxhzdk27">Servlet Engines  <a id="#servlet-engine"></a></h1>
 <p>When using a servlet engine, there are potential CLASSPATH issues, and potential conflicts with existing XML/XSLT libraries. Servlet containers also often use their own classloaders for loading webapps, which can cause bugs and security problems.</p>
-<h2 id="tomcat">Tomcat</h2>
+<h2 id="tomcat-wzxhzdk28wzxhzdk29">Tomcat # <a id="#tomcat"></a></h2>
 <p>Check Tomcat's documentation for detailed instructions about installing FOP and Cocoon. There are known bugs that must be addressed, particularly for Tomcat 4.0.3.</p>
-<h2 id="websphere">WebSphere 3.5</h2>
+<h2 id="websphere-35-wzxhzdk30wzxhzdk31">WebSphere 3.5 # <a id="#websphere"></a></h2>
 <p>Put a copy of a working parser in some directory where WebSphere can access it. For example, if /usr/webapps/yourapp/servlets is the CLASSPATH for your servlets, copy the Xerces jar into it (any other directory would also be fine). Do not add the jar to the servlet CLASSPATH, but add it to the CLASSPATH of the application server which contains your web application. In the WebSphere administration console, click on the "environment" button in the "general" tab. In the "variable name" box, enter "CLASSPATH". In the "value" box, enter the correct path to the parser jar file (/usr/webapps/yourapp/servlets/Xerces.jar in our example here). Press "OK", then apply the change and restart the application server.</p>
-<h1 id="complex-usecases">Handling complex use cases</h1>
+<h1 id="handling-complex-use-cases-wzxhzdk32wzxhzdk33">Handling complex use cases  <a id="#complex-usecases"></a></h1>
 <p>Sometimes the requirements for a servlet get quite sophisticated: SQL data sources, multiple XSL transformations, merging of several datasources etc. In such a case consider using <a href="http://cocoon.apache.org/">Apache Cocoon</a> instead of a custom servlet to accomplish your goal.</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.0/upgrading.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.0/upgrading.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.0/upgrading.html Tue Oct 23 15:05:41 2012
@@ -331,7 +331,7 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.0/">1.0</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="important">Important!</h1>
+<h1 id="important-wzxhzdk2wzxhzdk3">Important!  <a id="#important"></a></h1>
 <p>If you're planning to upgrade to the latest Apache&trade; FOP version there are a few very important things to consider:</p>
 <ul>
 <li>
@@ -360,7 +360,7 @@ While FOP 0.20.5 allowed you to have emp
 <p>The SVG Renderer and the MIF Handler have not been resurrected, yet! They are currently non-functional and hope for someone to step up and reimplement them.</p>
 </li>
 </ul>
-<h1 id="issues">What you need to know when you upgrade!</h1>
+<h1 id="what-you-need-to-know-when-you-upgrade-wzxhzdk5wzxhzdk6">What you need to know when you upgrade!  <a id="#issues"></a></h1>
 <p>When you use your existing FO files or XML/XSL files which work fine with FOP version 0.20.5 against this FOP version some things may not work as expected. The following list will hopefully help you to identify and correct those problems.</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/accessibility.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/accessibility.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/accessibility.html Tue Oct 23 15:05:41 2012
@@ -330,10 +330,10 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
-      	<div class="section-content"><h1 id="overview">Overview</h1>
+      	<div class="section-content"><h1 id="overview-wzxhzdk0wzxhzdk1">Overview  <a id="#overview"></a></h1>
 <p>This page describes the <a href="http://en.wikipedia.org/wiki/Accessibility">accessibility</a> features of Apache&trade; FOP. <a href="http://www.section508.gov/">Section 508</a> defines accessibility in the context of electronic documents for the USA but other countries have similar requirements.</p>
 <p>Accessibility features are available only for the PDF output format and there are some implementation limitations. Also, certain actions must be undertaken by the content creator to ensure that FOP can create a truly accessible document.</p>
-<h1 id="enabling-accessibility-enablingaccessibility">Enabling accessibility # {#Enabling+accessibility}</h1>
+<h1 id="enabling-accessibility-wzxhzdk3wzxhzdk4">Enabling accessibility  <a id="#Enabling+accessibility"></a></h1>
 <p>There are 3 ways to enable accessibility:</p>
 <ol>
 <li>
@@ -351,7 +351,7 @@ $(document).ready(function () {
 </ol>
 <p>When accessibility is enabled, additional information relating to the logical structure of the document is added to the PDF. That information allows the PDF viewer (or a text-to-speech application) to retrieve the natural reading order of the document.
 The processing of the logical structure is memory-hungry. You may need to adjust the Java heap size in order to process larger files.</p>
-<h1 id="source">Changes to your XSL-FO input files</h1>
+<h1 id="changes-to-your-xsl-fo-input-files-wzxhzdk5wzxhzdk6">Changes to your XSL-FO input files  <a id="#source"></a></h1>
 <p>Apache FOP cannot automatically generate accessible PDFs. Some of the work can only be performed by the content provider. Following are some changes that may be necessary to your XSL-FO content in order to generate really accessible documents:</p>
 <ul>
 <li>
@@ -367,7 +367,7 @@ The processing of the logical structure 
 <p>Specify the natural language of the document using the language and country properties (or via the <code>xml:lang</code> shorthand property).</p>
 </li>
 </ul>
-<h1 id="customTags">Customized Tagging</h1>
+<h1 id="customized-tagging-wzxhzdk7wzxhzdk8">Customized Tagging  <a id="#customTags"></a></h1>
 <p>The <a href="#PDFReference">PDF Reference</a> defines a set of standard Structure Types to tag content. For example, ‘P’ is used for identifying paragraphs, ‘H1’ to ‘H6’ for headers, ‘L’ for lists, ‘Div’ for block-level groups of elements, etc. This standard set is aimed at improving interoperability between applications producing or consuming PDF.</p>
 <p>FOP provides a default mapping of Formatting Objects to elements from that standard set. For example, <code>fo:page-sequence</code> is mapped to ‘Part’, <code>fo:block</code> is mapped to ‘P’, <code>fo:list-block</code> to ‘L’, etc.</p>
 <p>You may want to customize that mapping to improve the accuracy of the tagging or deal with particular FO constructs. For example, you may want to make use of the ‘H1’ to ‘H6’ tags to make the hierarchical structure of the document appear in the PDF. This is achieved by using the <code>role</code> XSL-FO property:
@@ -376,9 +376,9 @@ The processing of the logical structure 
 <fo:block>This is the first paragraph of the first section...</fo:block>
 ...
 If a non-standard structure type is specified, FOP will issue a warning and fall back to the default tag associated to the Formatting Object.</p>
-<h1 id="testing">Testing</h1>
+<h1 id="testing-wzxhzdk13wzxhzdk14">Testing  <a id="#testing"></a></h1>
 <p>Accessible PDFs can be tested, for example, using Adobe Acrobat Professional. Its Accessibility Check feature creates a report indicating any deficiencies with a PDF document. Alternatively, you can just let a screen reader read the document aloud.</p>
-<h1 id="limitations">Limitations</h1>
+<h1 id="limitations-wzxhzdk15wzxhzdk16">Limitations  <a id="#limitations"></a></h1>
 <p>Accessibility support in Apache FOP is relatively new, so there are certain limitations. Please help us identify and close any gaps.</p>
 <ul>
 <li>
@@ -394,7 +394,7 @@ If a non-standard structure type is spec
 <p>The side regions (region-before, region-after etc.) are currently not specially identified. Screen readers may read their content at page changes.</p>
 </li>
 </ul>
-<h1 id="links">Related Links</h1>
+<h1 id="related-links-wzxhzdk17wzxhzdk18">Related Links  <a id="#links"></a></h1>
 <p>Many resources providing guidance about creating accessible documents can be found on the web. Here are a few links, along with additional resources around the topic:</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/anttask.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/anttask.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/anttask.html Tue Oct 23 15:05:41 2012
@@ -332,7 +332,7 @@ $(document).ready(function () {
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
 <p>Apache&trade; FOP provides an Ant task for automating the document build process.</p>
-<h1 id="basics">Description</h1>
+<h1 id="description-wzxhzdk4wzxhzdk5">Description  <a id="#basics"></a></h1>
 <p>The FOP Ant task will convert XSL-FO documents to PDF, PS, PCL etc. output (see <a href="output.html">Output formats</a> for available formats).</p>
 <p>To call FOP tasks within Ant, first add a FOP task definition to your Ant build file. One method of defining the task is as follows:</p>
 <property name="fop.home" value="....path to your FOP HOME directory..."/>
@@ -352,7 +352,7 @@ $(document).ready(function () {
 
 Then create FOP tasks within your Ant build file, using the FOP task parameters listed below.
 
-# Parameters for FOP Ant task # {#parameters}
+# Parameters for FOP Ant task  <a id="#parameters"></a>
 
 <caption>Parameters specified as attributes</caption>| Attribute | Description | Required |
 |-----------|-------------|----------|
@@ -374,7 +374,7 @@ Then create FOP tasks within your Ant bu
 |-----------|-------------|----------|
 | fileset |  [FileSets](http://ant.apache.org/manual/CoreTypes/fileset.html) are used to specify multiple XSL-FO files to be rendered. | Yes, if no fofile attribute is supplied |
 
-# Examples # {#examples}
+# Examples  <a id="#examples"></a>
 
 The following example converts a single XSL-FO file to a PDF document:
 

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/changes_1.1.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/changes_1.1.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/changes_1.1.html Tue Oct 23 15:05:41 2012
@@ -331,10 +331,10 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><p><a href="changes_1.1.rss"></a> </p>
-<h1 id="introduction">Introduction and explanation of symbols</h1>
+<h1 id="introduction-and-explanation-of-symbols-wzxhzdk0wzxhzdk1">Introduction and explanation of symbols  <a id="#introduction"></a></h1>
 <p>Changes are sorted by "type" and then chronologically with the most recent at the top. These symbols denote the various action types:<icon alt="add" src="../images/add.jpg"></icon>=add,<icon alt="fix" src="../images/fix.jpg"></icon>=fix,<icon alt="remove" src="../images/remove.jpg"></icon>=remove,<icon alt="update" src="../images/update.jpg"></icon>=update</p>
-<h1 id="version_1.1">Version 1.1 (20 October 2012)</h1>
-<h2 id="Code_1.1">Changes to the Code Base</h2>
+<h1 id="version-11-20-october-2012-wzxhzdk10wzxhzdk11">Version 1.1 (20 October 2012)  <a id="#version_1.1"></a></h1>
+<h2 id="changes-to-the-code-base-wzxhzdk12wzxhzdk13">Changes to the Code Base # <a id="#Code_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Added support for the role property on fo:page-sequence, fo:flow and fo:static-content. This allows to change the mapping of those FOs to PDF structure types when enabling accessibility. Committed by VH.</p>
@@ -514,7 +514,7 @@ $(document).ready(function () {
 <p><icon alt="update" src="../images/update.jpg"></icon>Add run target for embedded examples. Add increased JVM memory heap flag for example8 in case font cache is rebuilt. Committed by GA. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=51617">51617</a> .</p>
 </li>
 </ul>
-<h2 id="Config_1.1">Changes to the User Configuration</h2>
+<h2 id="changes-to-the-user-configuration-wzxhzdk14wzxhzdk15">Changes to the User Configuration # <a id="#Config_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Added configuration option to set the version of the output PDF document. Committed by VH. Thanks to Mehdi Houshmand. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=51385">51385</a> .</p>
@@ -529,7 +529,7 @@ $(document).ready(function () {
 <p><icon alt="fix" src="../images/fix.jpg"></icon>Fix for relative URIs in the configuration file (base, font-base, hyphenation-base) are evaluated relative to the base URI of the configuration file. Committed by SP.</p>
 </li>
 </ul>
-<h2 id="Docs_1.1">Changes to Documentation</h2>
+<h2 id="changes-to-documentation-wzxhzdk16wzxhzdk17">Changes to Documentation # <a id="#Docs_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="fix" src="../images/fix.jpg"></icon>Fix renderer mime type for PCL output; should be application/x-pcl. Committed by GA. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=53247">53247</a> .</p>
@@ -538,7 +538,7 @@ $(document).ready(function () {
 <p><icon alt="update" src="../images/update.jpg"></icon>Update FAQ and New Bug documentation. Committed by GA.</p>
 </li>
 </ul>
-<h2 id="Fonts_1.1">Changes to the Font Subsystem</h2>
+<h2 id="changes-to-the-font-subsystem-wzxhzdk18wzxhzdk19">Changes to the Font Subsystem # <a id="#Fonts_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Add support for OpenType advanced typographic tables (GDEF, GSUB, GPOS). Committed by GA.</p>
@@ -586,7 +586,7 @@ $(document).ready(function () {
 <p><icon alt="update" src="../images/update.jpg"></icon>Removing experimental feature that violates XSL-FO and Unicode semantics by misinterpreting Basic Latin code points. Users must use private use codepoints to access font specific character mappings that have no assigned Unicode code point. See bug 50492. Committed by GA.</p>
 </li>
 </ul>
-<h2 id="Images_1.1">Changes to the Image Support</h2>
+<h2 id="changes-to-the-image-support-wzxhzdk20wzxhzdk21">Changes to the Image Support # <a id="#Images_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="fix" src="../images/fix.jpg"></icon>Fix incorrect SVG line dash pattern with PDF output format. Committed by GA. Thanks to Luis Bernardo. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=53431">53431</a> .</p>
@@ -604,7 +604,7 @@ $(document).ready(function () {
 <p><icon alt="update" src="../images/update.jpg"></icon>Fix newly introduced findbugs warnings. Committed by GA. Thanks to Luis Bernardo. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=40676">40676</a> .</p>
 </li>
 </ul>
-<h2 id="Layout_1.1">Changes to the Layout Engine</h2>
+<h2 id="changes-to-the-layout-engine-wzxhzdk22wzxhzdk23">Changes to the Layout Engine # <a id="#Layout_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Add support for complex scripts, including: full bidi support, support for advanced typographic tables, advanced support for number conversion. Committed by GA. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=32789">32789</a> , <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=49008">49008</a> , <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=49687">49687</a> .</p>
@@ -664,7 +664,7 @@ $(document).ready(function () {
 <p><icon alt="fix" src="../images/fix.jpg"></icon>Fixed retrieval of available BPD for cases spanning columns and multiple pages with differing page masters. Committed by JM. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=49885">49885</a> .</p>
 </li>
 </ul>
-<h2 id="Renderers_1.1">Changes to Renderers (Output Formats)</h2>
+<h2 id="changes-to-renderers-output-formats-wzxhzdk24wzxhzdk25">Changes to Renderers (Output Formats) # <a id="#Renderers_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="add" src="../images/add.jpg"></icon>Added possibility to embed TrueType fonts in PostScript. Committed by VH. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=52338">52338</a> .</p>
@@ -796,7 +796,7 @@ $(document).ready(function () {
 <p><icon alt="remove" src="../images/remove.jpg"></icon>Removed old Renderer implementations for those output formats that have a version based on the new DocumentHandler architecture available (AFP, PCL, PDF, PS). Committed by VH.</p>
 </li>
 </ul>
-<h2 id="Test_1.1">Changes to unit tests or other test code</h2>
+<h2 id="changes-to-unit-tests-or-other-test-code-wzxhzdk26wzxhzdk27">Changes to unit tests or other test code # <a id="#Test_1.1"></a></h2>
 <ul>
 <li>
 <p><icon alt="fix" src="../images/fix.jpg"></icon>Fix errors and warnings in example files. Add build.xml for documentation examples. Committed by GA.</p>
@@ -805,7 +805,7 @@ $(document).ready(function () {
 <p><icon alt="update" src="../images/update.jpg"></icon>Add test for basic-link with padding. Committed by GA. Thanks to Matthias Reischenbacher. See Issue <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=50196">50196</a> .</p>
 </li>
 </ul>
-<h2 id="contributors_1.1">Contributors to this release</h2>
+<h2 id="contributors-to-this-release-wzxhzdk28wzxhzdk29">Contributors to this release # <a id="#contributors_1.1"></a></h2>
 <p>We thank the following people for their contributions to this release.</p>
 <p>This is a list of all people who participated as committers:<br></br>Adrian Cumiskey (AC), Andreas Delmelle (AD), Chris Bowditch (CB), Glenn Adams (GA), Jeremias Märki (JM), Mehdi Houshmand (MH), Peter Hancock (PH), Simon Pepping (SP), Vincent Hennebert (VH).</p>
 <p>This is a list of other contributors:<br></br>Adrian Buza, Alberto Simões, Alexandros Papadakis, Alexios Giotis, Andrejus Chaliapinas, Armin Haaf, Benjamin Riefenstahl, Carsten Pfeiffer, Dieter von Holten, Georg Datterl, Glenn Adams, Joshua Marquart, Julien Aymé, Luis Bernardo, Luis Bernardo, Matthias Reischenbacher, Martin Koegler, Matthias Reischenbacher, Max Aster, Mehdi Houshmand, Melanie Drake, Michael Rubin, Ognjen Blagojevic, Pascal Sancho, Patrick Jaromin, Paul Huemer, Peter Hancock, Robert Meyer, Sergey Vladimirov, Simon Pepping, Tassos Charoulis, Vincent Hennebert.</p></div>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/compiling.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/compiling.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/compiling.html Tue Oct 23 15:05:41 2012
@@ -331,18 +331,18 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><p><version>$Revision$</version></p>
-<h1 id="build-needed">Do You Need To Build?</h1>
+<h1 id="do-you-need-to-build-wzxhzdk2wzxhzdk3">Do You Need To Build?  <a id="#build-needed"></a></h1>
 <p>Apache&trade; FOP snapshots are either pre-compiled binary or source. If you are using a binary snapshot, it is already built and there is no need to build it again. If you got the source code from a repository snapshot or via Subversion you will need to build FOP. See the <a href="../download.html">Download Instructions</a> for information about where to obtain binary or repository snapshots, and whether a binary or source snapshot is best for your needs.</p>
-<h1 id="env">Set Up Your Environment</h1>
-<h2 id="env-jdk">JDK</h2>
+<h1 id="set-up-your-environment-wzxhzdk5wzxhzdk6">Set Up Your Environment  <a id="#env"></a></h1>
+<h2 id="jdk-wzxhzdk7wzxhzdk8">JDK # <a id="#env-jdk"></a></h2>
 <p>Building FOP 1.1 requires a minimum Java Development Kit (JDK/SDK) of 1.5 (A Java Runtime Environment is not sufficient).</p>
-<h2 id="env-classpath">CLASSPATH</h2>
+<h2 id="classpath-wzxhzdk9wzxhzdk10">CLASSPATH # <a id="#env-classpath"></a></h2>
 <p>There is generally no need to setup a classpath. All libraries needed to compile FOP are included in the source distribution and are referenced by the build script. You will only need to adjust the classpath if you build FOP in some other way. See the build script build.xml for details.</p>
-<h2 id="env-java-home">JAVA_HOME</h2>
+<h2 id="java_home-wzxhzdk11wzxhzdk12">JAVA_HOME # <a id="#env-java-home"></a></h2>
 <p>The build script uses <a href="http://ant.apache.org/">Apache Ant</a> , a popular Java-based build tool, which usually requires that the environment variable JAVA_HOME point to your local JDK root directory. This is true even if you use JDK 1.5 or above, which normally does not need this setting.</p>
-<h2 id="env-ant">Apache Ant</h2>
+<h2 id="apache-ant-wzxhzdk13wzxhzdk14">Apache Ant # <a id="#env-ant"></a></h2>
 <p><a href="http://ant.apache.org/">Apache Ant</a> (Version 1.7 or later) must be installed in order to build FOP. Following best practices we don't include Ant with FOP anymore. You can find the <a href="http://ant.apache.org/manual/">instructions to install Ant in the Ant manual</a> on the web.</p>
-<h1 id="build-script">Run the Build Script</h1>
+<h1 id="run-the-build-script-wzxhzdk15wzxhzdk16">Run the Build Script  <a id="#build-script"></a></h1>
 <p>Change to the FOP root directory and build FOP by executing the build script (build.xml) using the "ant" command.
 The "ant" command is only available on your system if you've properly <a href="http://ant.apache.org/manual/">installed Apache Ant</a> and added Ant's location to the PATH environment variable.
 The file build.xml in the FOP root directory is the blueprint that Ant uses for the build. It contains information for numerous build targets, many of which are building blocks to more useful target, and others which are primarily used by the FOP developers. You may benefit from looking through this file to learn more about the various build targets. To obtain a complete list of useful build targets:
@@ -367,7 +367,7 @@ OR
 ant all
 To clean the build directory first:
 ant clean allIf you want to shorten the build time you can just call the "package" target which doesn't perform any automated tests during the build.</p>
-<h1 id="problems">Troubleshooting</h1>
+<h1 id="troubleshooting-wzxhzdk17wzxhzdk18">Troubleshooting  <a id="#problems"></a></h1>
 <p>If you have problems building FOP, please try the following:</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/complexscripts.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/complexscripts.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/complexscripts.html Tue Oct 23 15:05:41 2012
@@ -330,7 +330,7 @@ $(document).ready(function () {
       
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
-      	<div class="section-content"><h1 id="overview">Overview</h1>
+      	<div class="section-content"><h1 id="overview-wzxhzdk0wzxhzdk1">Overview  <a id="#overview"></a></h1>
 <p>This page describes the <a href="http://en.wikipedia.org/wiki/Complex_scripts">complex scripts</a> features of Apache&trade; FOP, which include:</p>
 <ul>
 <li>
@@ -346,7 +346,7 @@ $(document).ready(function () {
 <p>Support for advanced number to string formatting.</p>
 </li>
 </ul>
-<h1 id="disabling-complex-scripts-disablingcomplexscripts">Disabling complex scripts # {#Disabling+complex+scripts}</h1>
+<h1 id="disabling-complex-scripts-wzxhzdk3wzxhzdk4">Disabling complex scripts  <a id="#Disabling+complex+scripts"></a></h1>
 <p>Complex script features are enabled by default. If some application of FOP does not require this support, then it can be disabled in three ways:</p>
 <ol>
 <li>
@@ -364,7 +364,7 @@ $(document).ready(function () {
 </ol>
 <p>When complex scripts features are enabled, additional information related to bidirectional level resolution, the association between characters and glyphs, and glyph position adjustments are added to the internal, parsed representation of the XSL-FO tree and its corresponding formatted area tree. This additional information will somewhat increase the memory requirements for processing documents that use these features.
 A document author need not make explicit use of any complex scripts feature in order for this additional information to be created. For example, if the author makes use of a font that contains OpenType GSUB and/or GPOS tables, then those tables will be automatically used unless complex scripts features are disabled.</p>
-<h1 id="source">Changes to your XSL-FO input files</h1>
+<h1 id="changes-to-your-xsl-fo-input-files-wzxhzdk5wzxhzdk6">Changes to your XSL-FO input files  <a id="#source"></a></h1>
 <p>In most circumstances, XSL-FO content does not need to change in order to make use of complex scripts features; however, in certain contexts, fully automatic processing is not sufficient. In these cases, an author may make use of the following XSL-FO constructs:</p>
 <ul>
 <li>
@@ -389,9 +389,9 @@ A document author need not make explicit
 <p>Explicit join control characters: U+200C ZWNJ and U+200D ZWJ.</p>
 </li>
 </ul>
-<h1 id="details">Authoring Details</h1>
+<h1 id="authoring-details-wzxhzdk7wzxhzdk8">Authoring Details  <a id="#details"></a></h1>
 <p>The complex scripts related effects of the above enumerated XSL-FO constructs are more fully described in the following sub-sections.</p>
-<h2 id="script_property">Script Property</h2>
+<h2 id="script-property-wzxhzdk9wzxhzdk10">Script Property # <a id="#script_property"></a></h2>
 <p>In order to apply font specific complex script features, it is necessary to know the script that applies to the text undergoing layout processing. This script is determined using the following algorithm:</p>
 <ol>
 <li>
@@ -402,7 +402,7 @@ A document author need not make explicit
 </li>
 </ol>
 <p>In case the automatic algorithm does not produce the desired results, an author may explicitly specify a <code>script</code> property with the desired script. If specified, it must be one of the four-letter script code specified in <a href="http://unicode.org/iso15924/iso15924-codes.html">ISO 15924 Code List</a> or in the <a href="#extended_script_codes">Extended Script Codes</a> table. Comparison of script codes is performed in a case-insensitive manner, so it does not matter what case is used when specifying these codes in an XSL-FO document.</p>
-<h3 id="standard_script_codes">Standard Script Codes</h3>
+<h3 id="standard-script-codes-wzxhzdk11wzxhzdk12">Standard Script Codes ## <a id="#standard_script_codes"></a></h3>
 <p>The following table enumerates the standard ISO 15924 4-letter codes recognized by FOP.</p>
 <table>
 <thead>
@@ -542,7 +542,7 @@ A document author need not make explicit
 </tr>
 </tbody>
 </table>
-<h3 id="extended_script_codes">Extended Script Codes</h3>
+<h3 id="extended-script-codes-wzxhzdk13wzxhzdk14">Extended Script Codes ## <a id="#extended_script_codes"></a></h3>
 <p>The following table enumerates a number of non-standard extended script codes recognized by FOP.</p>
 <table>
 <thead>
@@ -626,7 +626,7 @@ A document author need not make explicit
 <td></td>
 </tr>
 <tr>
-<td id="language_property">## Language Property</td>
+<td>## Language Property # <a id="#language_property"></a></td>
 <td></td>
 <td></td>
 <td></td>
@@ -636,7 +636,7 @@ A document author need not make explicit
 </table>
 <p>Certain fonts that support complex script features can make use of language information in order for language specific processing rules to be applied. For example, a font designed for the Arabic script may support typographic variations according to whether the written language is Arabic, Farsi (Persian), Sindhi, Urdu, or another language written with the Arabic script. In order to apply these language specific features, the author may explicitly mark the text with a <a href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#language"></a> property.</p>
 <p>When specifying the <code>language</code> property, the value of the property must be either an <a href="http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes">ISO639-2 3-letter code</a> or an <a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO639-1 2-letter code</a> . Comparison of language codes is performed in a case-insensitive manner, so it does not matter what case is used when specifying these codes in an XSL-FO document.</p>
-<h2 id="writing_mode_property">Writing Mode Property</h2>
+<h2 id="writing-mode-property-wzxhzdk15wzxhzdk16">Writing Mode Property # <a id="#writing_mode_property"></a></h2>
 <p>The <code>writing-mode</code> property is used to determine the axes and direction of the inline progression direction, the block progression direction, the column progression direction (in tables and flows), the shift direction, region placement, the resolution of writing-mode relative property values (such as start, end, before, after), and the default block (paragraph) bidirectionality level.</p>
 <p>The <code>writing-mode</code> property is inherited, so it can appear on any XSL-FO element type; however, it applies (semantically) only to the following element types:</p>
 <ul>
@@ -676,9 +676,9 @@ A document author need not make explicit
 </li>
 </ul>
 <p>Writing modes that employ a vertical inline progression direction are not yet supported.</p>
-<h2 id="bidi_override_element">Bidi Override Element</h2>
+<h2 id="bidi-override-element-wzxhzdk17wzxhzdk18">Bidi Override Element # <a id="#bidi_override_element"></a></h2>
 <p>The <a href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_bidi-override"></a> element may be used to override default bidirectional processing behavior, including default embedding levels and default character directionality. In the absence of either this element or use of explicit <a href="#bidi_controls">Bidi Control Characters</a> , the default behavior prescribed by the <a href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_bidi-override">Unicode Bidirectional Algorithm</a> applies.</p>
-<h2 id="bidi_controls">Bidi Control Characters</h2>
+<h2 id="bidi-control-characters-wzxhzdk19wzxhzdk20">Bidi Control Characters # <a id="#bidi_controls"></a></h2>
 <p>In addition to the use of the <a href="#bidi_override_element">Bidi Override Element</a> , an author may make use of the following explicit Unicode Bidi Control Characters:</p>
 <ul>
 <li>
@@ -704,11 +704,11 @@ A document author need not make explicit
 </li>
 </ul>
 <p>If an embedding or override is not terminated (using U+202C PDF) prior to the end of a <a href="http://www.w3.org/TR/2006/REC-xsl11-20061205/#d0e4879">delimited text range</a> , then it is automatically terminated by FOP.</p>
-<h2 id="join_controls">Join Control Characters</h2>
+<h2 id="join-control-characters-wzxhzdk21wzxhzdk22">Join Control Characters # <a id="#join_controls"></a></h2>
 <p>In order to prevent joining behavior in contexts where joining occurs by default, for example, between U+0628 ARABIC LETTER BEH and U+0646 ARABIC LETTER NOON, an author may used a U+200C ZERO WIDTH NON-JOINER (ZWNJ).</p>
 <p>Conversely, in order to force joining behavior in contexts where joining does not occur by default, for example, between U+0628 ARABIC LETTER BEH and U+0020 SPACE, an author may used a U+200D ZERO WIDTH JOINER (ZWJ).</p>
 <p>The behavior of ZWNJ and ZWJ is script specific. See <a href="http://www.unicode.org/versions/Unicode6.1.0/ch08.pdf">The Unicode Standard, Chapter 8, Middle Eastern Scripts</a> for information on the use of these control characters with the Arabic script. See <a href="http://www.unicode.org/versions/Unicode6.1.0/ch09.pdf">The Unicode Standard, Chapter 9, South Asian Scripts - I</a> for information on the use of these control characters with common Indic scripts.</p>
-<h1 id="supported_scripts">Supported Scripts</h1>
+<h1 id="supported-scripts-wzxhzdk23wzxhzdk24">Supported Scripts  <a id="#supported_scripts"></a></h1>
 <p>Support for specific complex scripts is enumerated in the following table. Support for those marked as not being supported is expected to be added in future revisions.</p>
 <table>
 <thead>
@@ -860,9 +860,9 @@ A document author need not make explicit
 </tr>
 </tbody>
 </table>
-<h1 id="supported_fonts">Supported Fonts</h1>
+<h1 id="supported-fonts-wzxhzdk25wzxhzdk26">Supported Fonts  <a id="#supported_fonts"></a></h1>
 <p>Support for specific fonts is enumerated in the following sub-sections. If a given font is not listed, then it has not been tested with these complex scripts features.</p>
-<h2 id="fonts_arabic">Arabic Fonts</h2>
+<h2 id="arabic-fonts-wzxhzdk27wzxhzdk28">Arabic Fonts # <a id="#fonts_arabic"></a></h2>
 <table>
 <thead>
 <tr>
@@ -949,7 +949,7 @@ A document author need not make explicit
 </tr>
 </tbody>
 </table>
-<h2 id="devanagari_fonts">Devanagari Fonts</h2>
+<h2 id="devanagari-fonts-wzxhzdk29wzxhzdk30">Devanagari Fonts # <a id="#devanagari_fonts"></a></h2>
 <table>
 <thead>
 <tr>
@@ -996,7 +996,7 @@ A document author need not make explicit
 </tr>
 </tbody>
 </table>
-<h1 id="limitations">Other Limitations</h1>
+<h1 id="other-limitations-wzxhzdk31wzxhzdk32">Other Limitations  <a id="#limitations"></a></h1>
 <p>Complex scripts support in Apache FOP is relatively new, so there are certain limitations. Please help us identify and close any gaps.</p>
 <ul>
 <li>
@@ -1006,7 +1006,7 @@ A document author need not make explicit
 <p>Shaping context does not extend across an element boundary. This limitation prevents the use of <code>fo:character</code> , <code>fo:inline</code> or <code>fo:wrapper</code> in order to colorize individual Arabic letters without affecting shaping behavior across the element boundary.</p>
 </li>
 </ul>
-<h1 id="links">Related Links</h1>
+<h1 id="related-links-wzxhzdk33wzxhzdk34">Related Links  <a id="#links"></a></h1>
 <p>In addition to the XSL-FO specification, a number of external resources provide guidance about authoring documents that employ complex scripts and the features described above:</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/configuration.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/configuration.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/configuration.html Tue Oct 23 15:05:41 2012
@@ -331,10 +331,10 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><p><version>$Revision$</version></p>
-<h1 id="general">Configuration File Basics</h1>
+<h1 id="configuration-file-basics-wzxhzdk8wzxhzdk9">Configuration File Basics  <a id="#general"></a></h1>
 <p>The Apache&trade; FOP configuration file is an XML file containing a variety of settings that are useful for controlling FOP's behavior, and for helping it find resources that you wish it to use.</p>
 <p>The easiest way to get started using a FOP configuration file is to copy the sample found at <code>{fop-dir}/conf/fop.xconf</code> to a location of your choice, and then to edit it according to your needs. It contains templates for the various configuration options, most of which are commented out. Remove the comments and change the settings for entries that you wish to use. Be sure to follow any instructions, including comments which specify the value range. Also, since the configuration file is XML, be sure to keep it well-formed.</p>
-<h2 id="general-available">Making Configuration Available to FOP</h2>
+<h2 id="making-configuration-available-to-fop-wzxhzdk11wzxhzdk12">Making Configuration Available to FOP # <a id="#general-available"></a></h2>
 <p>After creating your configuration file, you must tell FOP how to find it:</p>
 <ul>
 <li>
@@ -345,7 +345,7 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>See <a href="embedding.html#config-internal">Setting the Configuration Programmatically</a> for instructions on how to do so in an embedded environment.</p>
-<h1 id="general-elements">Summary of the General Configuration Options</h1>
+<h1 id="summary-of-the-general-configuration-options-wzxhzdk13wzxhzdk14">Summary of the General Configuration Options  <a id="#general-elements"></a></h1>
 <table>
 <thead>
 <tr>
@@ -469,12 +469,12 @@ $(document).ready(function () {
   <hyphenation-pattern lang="nl" country="BE">nl_Bel</hyphenation-pattern></p>
 <p><!-- etc. etc..... -->
 </fop></p>
-<h1 id="image-loading">Image Loading Customization</h1>
+<h1 id="image-loading-customization-wzxhzdk41wzxhzdk42">Image Loading Customization  <a id="#image-loading"></a></h1>
 <p class=".">Apache FOP uses the image loading framework from <a href="http://xmlgraphics.apache.org/commons/">Apache XML Graphics Commons</a> to load images using various plug-ins. Every image loader plug-in has a hard-coded usage penalty that influences which solution is chosen if there are multiple possibilities to load an image. Sometimes, though, these penalties need to be tweaked and this can be done in the FOP configuration. An example:
 <fop version="1.0"></p>
 <p>The second penalty element sets an "infinite" penalty for the TIFF loader using the internal TIFF codec. This practically disables that plug-in as it will never be chosen as a possible solution.</p>
 <p>Negative penalties are possible to promote a plug-in but a negative penalty sum will be treated as zero penalty in most cases. For more details on the image loading framework, please consult the documentation there.</p>
-<h1 id="renderers">Renderer configuration</h1>
+<h1 id="renderer-configuration-wzxhzdk44wzxhzdk45">Renderer configuration  <a id="#renderers"></a></h1>
 <p>Each Renderer has its own configuration section which is identified by the MIME type the Renderer is written for, ex. "application/pdf" for the PDF Renderer.</p>
 <p>The configuration for the PDF Renderer could look like this:</p>
 <p><renderers>
@@ -500,7 +500,7 @@ $(document).ready(function () {
 
 
 <p>The details on the font configuration can be found on the separate <a href="fonts.html">Fonts</a> page. Note especially the section entitled <a href="fonts.html#register">Register Fonts with FOP</a> .</p>
-<h2 id="pdf-renderer">Special Settings for the PDF Renderer</h2>
+<h2 id="special-settings-for-the-pdf-renderer-wzxhzdk64wzxhzdk65">Special Settings for the PDF Renderer # <a id="#pdf-renderer"></a></h2>
 <p>The configuration element for the PDF renderer contains two elements. One is for the font configuration (please follow the link above) and one is for the "filter list". The filter list controls how the individual objects in a PDF file are encoded. By default, all objects get "flate" encoded (i.e. simply compressed with the same algorithm that is also used in ZIP files). Most users don't need to change that setting. For debugging purposes, it may be desired not to compress the internal objects at all so the generated PDF commands can be read. In that case, you can simply use the following filter list. The second filter list (type="image") ensures that all images still get compressed but also ASCII-85 encoded so the produced PDF file is still easily readable in a text editor.</p>
 <div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/pdf&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;filterList&gt;</span>
@@ -562,7 +562,7 @@ $(document).ready(function () {
         <version>1.5</version>
         <!-- Versions 1.4, 1.5, 1.6 and 1.7 are accepted, all other values are invalid -->
       </renderer></p>
-<h2 id="ps-renderer">Special Settings for the PostScript Renderer</h2>
+<h2 id="special-settings-for-the-postscript-renderer-wzxhzdk71wzxhzdk72">Special Settings for the PostScript Renderer # <a id="#ps-renderer"></a></h2>
 <p>Besides the normal font configuration (the same "fonts" element as for the PDF renderer) the PostScript renderer has an additional setting to force landscape pages to be rotated to fit on a page inserted into the printer in portrait mode. Set the value to "true" to activate this feature. The default is "false". Example:</p>
 <div class="codehilite"><pre><span class="nt">&lt;renderer</span> <span class="na">mime=</span><span class="s">&quot;application/postscript&quot;</span><span class="nt">&gt;</span>
   <span class="nt">&lt;auto-rotate-landscape&gt;</span>true<span class="nt">&lt;/auto-rotate-landscape&gt;</span>
@@ -581,7 +581,7 @@ $(document).ready(function () {
 </pre></div>
 
 
-<h2 id="pcl-renderer">Special Settings for the PCL Renderer</h2>
+<h2 id="special-settings-for-the-pcl-renderer-wzxhzdk73wzxhzdk74">Special Settings for the PCL Renderer # <a id="#pcl-renderer"></a></h2>
 <p>Non-standard fonts for the PCL renderer are made available through the Java2D subsystem which means that you don't have to do any custom font configuration in this case but you have to use the font names offered by Java.</p>
 <p>Additionally, there are certain settings that control how the renderer handles various elements.
 <renderer mime="application/x-pcl">
@@ -590,7 +590,7 @@ $(document).ready(function () {
 </renderer>
 The default value for the "rendering" setting is "speed" which causes borders to be painted as plain rectangles. In this mode, no special borders (dotted, dashed etc.) are available. If you want support for all border modes, set the value to "quality" as indicated above. This will cause the borders to be painted as bitmaps.</p>
 <p>The default value for the "text-rendering" setting is "auto" which paints the base fonts using PCL fonts. Non-base fonts are painted as bitmaps through Java2D. If the mix of painting methods results in unwelcome output, you can set this to "bitmap" which causes all text to be rendered as bitmaps.</p>
-<h2 id="afp-renderer">Special Settings for the AFP Renderer</h2>
+<h2 id="special-settings-for-the-afp-renderer-wzxhzdk81wzxhzdk82">Special Settings for the AFP Renderer # <a id="#afp-renderer"></a></h2>
 <p>Additionally, there are certain settings that control how the renderer handles various elements.
 <renderer mime="application/x-afp">
   <images mode="b+w" bits-per-pixel="8" native="true"/>
@@ -603,7 +603,7 @@ The default value for the images "mode" 
 <p>The default value for the "renderer-resolution" is 240 dpi.</p>
 <p>The default line width is device dependent and may need to be fine tuned so that the output matches the expected result. The default correction value is 2.5.</p>
 <p>By default if there is no configuration definition for "resource-group-file", external resources will be placed in a file called resources.afp.</p>
-<h1 id="when-it-does-not-work-whenitdoesnotwork">When it does not work # {#When+it+does+not+work}</h1>
+<h1 id="when-it-does-not-work-wzxhzdk93wzxhzdk94">When it does not work  <a id="#When+it+does+not+work"></a></h1>
 <p>FOP searches the configuration file for the information it expects, at the position it expects. When that information is not present, FOP will not complain, it will just continue. When there is other information in the file, FOP will not complain, it will just ignore it. That means that when your configuration information is in the file but in a different XML element, or in a different XML path, than FOP expects, it will be silently ignored.</p>
 <p>Check the following possibilities:</p>
 <ul>

Modified: websites/staging/xmlgraphics/trunk/content/fop/1.1/embedding.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/1.1/embedding.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/1.1/embedding.html Tue Oct 23 15:05:41 2012
@@ -331,10 +331,10 @@ $(document).ready(function () {
       <div id="content" class="grid_16">
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/1.1/">1.1</a></div> -->
       	<div class="section-content"><p><subtitle>How to Embed FOP in a Java application</subtitle><version>$Revision$</version></p>
-<h1 id="overview">Overview</h1>
+<h1 id="overview-wzxhzdk4wzxhzdk5">Overview  <a id="#overview"></a></h1>
 <p>Review <a href="running.html">Running Apache&trade; FOP</a> for important information that applies to embedded applications as well as command-line use, such as options and performance.</p>
 <p>To embed Apache&trade; FOP in your application, first create a new org.apache.fop.apps.FopFactory instance. This object can be used to launch multiple rendering runs. For each run, create a new org.apache.fop.apps.Fop instance through one of the factory methods of FopFactory. In the method call you specify which output format (i.e. MIME type) to use and, if the selected output format requires an OutputStream, which OutputStream to use for the results of the rendering. You can customize FOP's behaviour in a rendering run by supplying your own FOUserAgent instance. The FOUserAgent can, for example, be used to set your own document handler instance (details below). Finally, you retrieve a SAX DefaultHandler instance from the Fop object and use that as the SAXResult of your transformation.</p>
-<h1 id="API">The API</h1>
+<h1 id="the-api-wzxhzdk8wzxhzdk9">The API  <a id="#API"></a></h1>
 <p>FOP has many classes which express the "public" access modifier, however, this is not indicative of their inclusion into the public API. Every attempt will be made to keep the public API static, to minimize regressions for existing users, however, since the API is not clearly defined, the list of classes below are the generally agreed public API:
 org.apache.fop.apps.*
 org.apache.fop.fo.FOEventHandler
@@ -352,7 +352,7 @@ org.apache.fop.render.intermediate.IFPar
 org.apache.fop.render.intermediate.IFSerializer
 org.apache.fop.render.intermediate.IFUtil
 org.apache.fop.render.intermediate.util.IFConcatenator</p>
-<h1 id="basics">Basic Usage Pattern</h1>
+<h1 id="basic-usage-pattern-wzxhzdk10wzxhzdk11">Basic Usage Pattern  <a id="#basics"></a></h1>
 <p>Apache FOP relies heavily on JAXP. It uses SAX events exclusively to receive the XSL-FO input document. It is therefore a good idea that you know a few things about JAXP (which is a good skill anyway). Let's look at the basic usage pattern for FOP...</p>
 <p>Here is the basic pattern to render an XSL-FO file to PDF:</p>
 <p>import org.apache.fop.apps.FopFactory;
@@ -405,7 +405,7 @@ Let's discuss these 5 steps in detail:</
 </ul>
 <p>If you're not totally familiar with JAXP Transformers, please have a look at the <a href="#examples">Embedding examples</a> below. The section contains examples for all sorts of use cases. If you look at all of them in turn you should be able to see the patterns in use and the flexibility this approach offers without adding too much complexity.</p>
 <p>This may look complicated at first, but it's really just the combination of an XSL transformation and a FOP run. It's also easy to comment out the FOP part for debugging purposes, for example when you're tracking down a bug in your stylesheet. You can easily write the XSL-FO output from the XSL transformation to a file to check if that part generates the expected output. An example for that can be found in the <a href="#examples">Embedding examples</a> (See "ExampleXML2FO").</p>
-<h2 id="basic-logging">Logging</h2>
+<h2 id="logging-wzxhzdk12wzxhzdk13">Logging # <a id="#basic-logging"></a></h2>
 <p>Logging is now a little different than it was in FOP 0.20.5. We've switched from Avalon Logging to <a href="http://commons.apache.org/logging/">Jakarta Commons Logging</a> . While with Avalon Logging the loggers were directly given to FOP, FOP now retrieves its logger(s) through a statically available LogFactory. This is similar to the general pattern that you use when you work with Apache Log4J directly, for example. We call this "static logging" (Commons Logging, Log4J) as opposed to "instance logging" (Avalon Logging). This has a consequence: You can't give FOP a logger for each processing run anymore. The log output of multiple, simultaneously running FOP instances is sent to the same logger.</p>
 <p>By default, <a href="http://commons.apache.org/logging/">Jakarta Commons Logging</a> uses JDK logging (available in JDKs 1.4 or higher) as its backend. You can configure Commons Logging to use an alternative backend, for example Log4J. Please consult the <a href="http://commons.apache.org/logging/">documentation for Jakarta Commons Logging</a> on how to configure alternative backends.</p>
 <p>As a result of the above we differentiate between two kinds of "logging":</p>
@@ -418,16 +418,16 @@ Let's discuss these 5 steps in detail:</
 </li>
 </ul>
 <p>The use of "feedback" instead of "logging" is intentional. Most people were using log output as a means to get feedback from events within FOP. Therefore, FOP now includes an <code>event</code> package which can be used to receive feedback from the layout engine and other components within FOP <strong>per rendering run</strong> . This feedback is not just some text but event objects with parameters so these events can be interpreted by code. Of course, there is a facility to turn these events into normal human-readable messages. For details, please read on on the <a href="events.html">Events page</a> . This leaves normal logging to be mostly a thing used by the FOP developers although anyone can surely activate certain logging categories but the feedback from the loggers won't be separated by processing runs. If this is required, the <a href="events.html">Events subsystem</a> is the right approach.</p>
-<h2 id="render">Processing XSL-FO</h2>
+<h2 id="processing-xsl-fo-wzxhzdk14wzxhzdk15">Processing XSL-FO # <a id="#render"></a></h2>
 <p>Once the Fop instance is set up, call <code>getDefaultHandler()</code> to obtain a SAX DefaultHandler instance to which you can send the SAX events making up the XSL-FO document you'd like to render. FOP processing starts as soon as the DefaultHandler's <code>startDocument()</code> method is called. Processing stops again when the DefaultHandler's <code>endDocument()</code> method is called. Please refer to the basic usage pattern shown above to render a simple XSL-FO document.</p>
-<h2 id="render-with-xslt">Processing XSL-FO generated from XML+XSLT</h2>
+<h2 id="processing-xsl-fo-generated-from-xmlxslt-wzxhzdk16wzxhzdk17">Processing XSL-FO generated from XML+XSLT # <a id="#render-with-xslt"></a></h2>
 <p>If you want to process XSL-FO generated from XML using XSLT we recommend again using standard JAXP to do the XSLT part and piping the generated SAX events directly through to FOP. The only thing you'd change to do that on the basic usage pattern above is to set up the Transformer differently:</p>
 <p>//without XSLT:
   //Transformer transformer = factory.newTransformer(); // identity transformer</p>
 <p>//with XSLT:
   Source xslt = new StreamSource(new File("mystylesheet.xsl"));
   Transformer transformer = factory.newTransformer(xslt);</p>
-<h1 id="input">Input Sources</h1>
+<h1 id="input-sources-wzxhzdk18wzxhzdk19">Input Sources  <a id="#input"></a></h1>
 <p>The input XSL-FO document is always received by FOP as a SAX stream (see the <a href="../dev/design/parsing.html">Parsing Design Document</a> for the rationale).</p>
 <p>However, you may not always have your input document available as a SAX stream. But with JAXP it's easy to convert different input sources to a SAX stream so you can pipe it into FOP. That sounds more difficult than it is. You simply have to set up the right Source instance as input for the JAXP transformation. A few examples:</p>
 <ul>
@@ -454,9 +454,9 @@ Let's discuss these 5 steps in detail:</
 </li>
 </ul>
 <p>There are a variety of upstream data manipulations possible. For example, you may have a DOM and an XSL stylesheet; or you may want to set variables in the stylesheet. Interface documentation and some cookbook solutions to these situations are provided in <a href="http://xml.apache.org/xalan-j/usagepatterns.html">Xalan Basic Usage Patterns</a> .</p>
-<h1 id="config-internal">Configuring Apache FOP Programmatically</h1>
+<h1 id="configuring-apache-fop-programmatically-wzxhzdk20wzxhzdk21">Configuring Apache FOP Programmatically  <a id="#config-internal"></a></h1>
 <p>Apache FOP provides two levels on which you can customize FOP's behaviour: the FopFactory and the user agent.</p>
-<h2 id="fop-factory">Customizing the FopFactory</h2>
+<h2 id="customizing-the-fopfactory-wzxhzdk22wzxhzdk23">Customizing the FopFactory # <a id="#fop-factory"></a></h2>
 <p>The FopFactory holds configuration data and references to objects which are reusable over multiple rendering runs. It's important to instantiate it only once (except in special environments) and reuse it every time to create new FOUserAgent and Fop instances.</p>
 <p>You can set all sorts of things on the FopFactory:</p>
 <ul>
@@ -489,7 +489,7 @@ fopFactory.addElementMapping(myElementMa
 fopFactory.setURIResolver(myResolver); // myResolver is a javax.xml.transform.URIResolverBoth the FopFactory and the FOUserAgent have a method to set a URIResolver. The URIResolver on the FopFactory is primarily used to resolve URIs on factory-level (hyphenation patterns, for example) and it is always used if no other URIResolver (for example on the FOUserAgent) resolved the URI first.</p>
 </li>
 </ul>
-<h2 id="user-agent">Customizing the User Agent</h2>
+<h2 id="customizing-the-user-agent-wzxhzdk24wzxhzdk25">Customizing the User Agent # <a id="#user-agent"></a></h2>
 <p>The user agent is the entity that allows you to interact with a single rendering run, i.e. the processing of a single document. If you wish to customize the user agent's behaviour, the first step is to create your own instance of FOUserAgent using the appropriate factory method on FopFactory and pass that to the factory method that will create a new Fop instance:</p>
 <p>FopFactory fopFactory = FopFactory.newInstance(); // Reuse the FopFactory if possible!
   // do the following for each new rendering run
@@ -544,7 +544,7 @@ userAgent.setURIResolver(myResolver); //
 You should not reuse an FOUserAgent instance between FOP rendering runs although you can. Especially in multi-threaded environment, this is a bad idea.</p>
 </li>
 </ul>
-<h1 id="config-external">Using a Configuration File</h1>
+<h1 id="using-a-configuration-file-wzxhzdk26wzxhzdk27">Using a Configuration File  <a id="#config-external"></a></h1>
 <p>Instead of setting the parameters manually in code as shown above you can also set many values from an XML configuration file:</p>
 <p>import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;</p>
@@ -555,7 +555,7 @@ fopFactory.setUserConfig(cfg);</p>
 <p>/<em> ..or.. </em>/</p>
 <p>fopFactory.setUserConfig(new File("C:/Temp/mycfg.xml"));
 The layout of the configuration file is described on the <a href="configuration.html">Configuration page</a> .</p>
-<h1 id="documenthandlers">Document Handlers</h1>
+<h1 id="document-handlers-wzxhzdk28wzxhzdk29">Document Handlers  <a id="#documenthandlers"></a></h1>
 <p>The document handlers are classes that inherit from <code>org.apache.fop.render.intermediate.IFDocumentHandler</code> . This is an interface for which a MIME type specific implementation can be created. This same handler is used either when XSL-FO is used as the input or when Intermediate Format is used. Since IF is output format agnostic, if custom fonts or other configuration information that affect layout (specific to a particular MIME type) are given then FOP needs that contextual information. The document handler provides that context so that when the IF is rendered, it is more visually consistent with FO rendering. The code below shows an example of how a document handler can be used to provide PDF configuration data to the IFSerializer.
 IFDocumentHandler targetHandler = userAgent.getRendererFactory().createDocumentHandler(userAgent, MimeConstants.MIME_PDF);</p>
 <p>IFSerializer ifSerializer = new IFSerializer();  //Create the IFSerializer to write the intermediate format
@@ -563,16 +563,16 @@ ifSerializer.setContext(new IFContext(us
 ifSerializer.mimicDocumentHandler(targetHandler);   //Tell the IFSerializer to mimic the target format</p>
 <p>userAgent.setDocumentHandlerOverride(ifSerializer);  //Make sure the prepared document handler is used
       The rest of the code is the same as in <a href="#basics">Basic Usage Patterns</a> .</p>
-<h1 id="hints">Hints</h1>
-<h2 id="object-reuse">Object reuse</h2>
+<h1 id="hints-wzxhzdk30wzxhzdk31">Hints  <a id="#hints"></a></h1>
+<h2 id="object-reuse-wzxhzdk32wzxhzdk33">Object reuse # <a id="#object-reuse"></a></h2>
 <p>Fop instances shouldn't (and can't) be reused. Please recreate Fop and FOUserAgent instances for each rendering run using the FopFactory. This is a cheap operation as all reusable information is held in the FopFactory. That's why it's so important to reuse the FopFactory instance.</p>
-<h2 id="awt">AWT issues</h2>
+<h2 id="awt-issues-wzxhzdk34wzxhzdk35">AWT issues # <a id="#awt"></a></h2>
 <p>If your XSL-FO files contain SVG then Apache Batik will be used. When Batik is initialised it uses certain classes in <code>java.awt</code> that intialise the Java AWT classes. This means that a daemon thread is created by the JVM and on Unix it will need to connect to a DISPLAY.</p>
 <p>The thread means that the Java application may not automatically quit when finished, you will need to call <code>System.exit()</code> . These issues should be fixed in the JDK 1.4.</p>
 <p>If you run into trouble running FOP on a head-less server, please see the <a href="graphics.html#batik">notes on Batik</a> .</p>
-<h2 id="render-info">Getting information on the rendering process</h2>
+<h2 id="getting-information-on-the-rendering-process-wzxhzdk36wzxhzdk37">Getting information on the rendering process # <a id="#render-info"></a></h2>
 <p>To get the number of pages that were rendered by FOP you can call <code>Fop.getResults()</code> . This returns a <code>FormattingResults</code> object where you can look up the number of pages produced. It also gives you the page-sequences that were produced along with their id attribute and their numbers of pages. This is particularly useful if you render multiple documents (each enclosed by a page-sequence) and have to know the number of pages of each document.</p>
-<h1 id="performance">Improving performance</h1>
+<h1 id="improving-performance-wzxhzdk38wzxhzdk39">Improving performance  <a id="#performance"></a></h1>
 <p>There are several options to consider:</p>
 <ul>
 <li>
@@ -594,37 +594,37 @@ ifSerializer.mimicDocumentHandler(target
 <p>You may also wish to consider trying to reduce <a href="http://xmlgraphics.apache.org/fop/trunk/running.html#memory">memory usage</a> .</p>
 </li>
 </ul>
-<h1 id="multithreading">Multithreading FOP</h1>
+<h1 id="multithreading-fop-wzxhzdk40wzxhzdk41">Multithreading FOP  <a id="#multithreading"></a></h1>
 <p>Apache FOP may currently not be completely thread safe. The code has not been fully tested for multi-threading issues, yet. If you encounter any suspicious behaviour, please notify us.</p>
 <p>There is also a known issue with fonts being jumbled between threads when using the Java2D/AWT renderer (which is used by the -awt and -print output options). In general, you cannot safely run multiple threads through the AWT renderer.</p>
-<h1 id="examples">Examples</h1>
+<h1 id="examples-wzxhzdk42wzxhzdk43">Examples  <a id="#examples"></a></h1>
 <p>The directory "{fop-dir}/examples/embedding" contains several working examples.</p>
-<h2 id="ExampleFO2PDF">ExampleFO2PDF.java</h2>
+<h2 id="examplefo2pdfjava-wzxhzdk44wzxhzdk45">ExampleFO2PDF.java # <a id="#ExampleFO2PDF"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2PDF.java?view=markup">example</a> demonstrates the basic usage pattern to transform an XSL-FO file to PDF using FOP.
 <figure alt="Example XSL-FO to PDF" src="images/EmbeddingExampleFO2PDF.png"></figure></p>
-<h2 id="ExampleXML2FO">ExampleXML2FO.java</h2>
+<h2 id="examplexml2fojava-wzxhzdk48wzxhzdk49">ExampleXML2FO.java # <a id="#ExampleXML2FO"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2FO.java?view=markup">example</a> has nothing to do with FOP. It is there to show you how an XML file can be converted to XSL-FO using XSLT. The JAXP API is used to do the transformation. Make sure you've got a JAXP-compliant XSLT processor in your classpath (ex. <a href="http://xml.apache.org/xalan-j">Xalan</a> ).
 <figure alt="Example XML to XSL-FO" src="images/EmbeddingExampleXML2FO.png"></figure></p>
-<h2 id="ExampleXML2PDF">ExampleXML2PDF.java</h2>
+<h2 id="examplexml2pdfjava-wzxhzdk52wzxhzdk53">ExampleXML2PDF.java # <a id="#ExampleXML2PDF"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup">example</a> demonstrates how you can convert an arbitrary XML file to PDF using XSLT and XSL-FO/FOP. It is a combination of the first two examples above. The example uses JAXP to transform the XML file to XSL-FO and FOP to transform the XSL-FO to PDF.
 <figure alt="Example XML to PDF (via XSL-FO)" src="images/EmbeddingExampleXML2PDF.png"></figure>
 The output (XSL-FO) from the XSL transformation is piped through to FOP using SAX events. This is the most efficient way to do this because the intermediate result doesn't have to be saved somewhere. Often, novice users save the intermediate result in a file, a byte array or a DOM tree. We strongly discourage you to do this if it isn't absolutely necessary. The performance is significantly higher with SAX.</p>
-<h2 id="ExampleObj2XML">ExampleObj2XML.java</h2>
+<h2 id="exampleobj2xmljava-wzxhzdk56wzxhzdk57">ExampleObj2XML.java # <a id="#ExampleObj2XML"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2XML.java?view=markup">example</a> is a preparatory example for the next one. It's an example that shows how an arbitrary Java object can be converted to XML. It's an often needed task to do this. Often people create a DOM tree from a Java object and use that. This is pretty straightforward. The example here, however, shows how to do this using SAX, which will probably be faster and not even more complicated once you know how this works.
 <figure alt="Example Java object to XML" src="images/EmbeddingExampleObj2XML.png"></figure>
 For this example we've created two classes: ProjectTeam and ProjectMember (found in xml-fop/examples/embedding/java/embedding/model). They represent the same data structure found in xml-fop/examples/embedding/xml/xml/projectteam.xml. We want to serialize to XML a project team with several members which exist as Java objects. Therefore we created the two classes: ProjectTeamInputSource and ProjectTeamXMLReader (in the same place as ProjectTeam above).</p>
 <p>The XMLReader implementation (regard it as a special kind of XML parser) is responsible for creating SAX events from the Java object. The InputSource class is only used to hold the ProjectTeam object to be used.</p>
 <p>Have a look at the source of ExampleObj2XML.java to find out how this is used. For more detailed information see other resources on JAXP (ex. <a href="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/3_generate.html">An older JAXP tutorial</a> ).</p>
-<h2 id="ExampleObj2PDF">ExampleObj2PDF.java</h2>
+<h2 id="exampleobj2pdfjava-wzxhzdk60wzxhzdk61">ExampleObj2PDF.java # <a id="#ExampleObj2PDF"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleObj2PDF.java?view=markup">example</a> combines the previous and the third to demonstrate how you can transform a Java object to a PDF directly in one smooth run by generating SAX events from the Java object that get fed to an XSL transformation. The result of the transformation is then converted to PDF using FOP as before.
 <figure alt="Example Java object to PDF (via XML and XSL-FO)" src="images/EmbeddingExampleObj2PDF.png"></figure></p>
-<h2 id="ExampleDOM2PDF">ExampleDOM2PDF.java</h2>
+<h2 id="exampledom2pdfjava-wzxhzdk64wzxhzdk65">ExampleDOM2PDF.java # <a id="#ExampleDOM2PDF"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleDOM2PDF.java?view=markup">example</a> has FOP use a DOMSource instead of a StreamSource in order to use a DOM tree as input for an XSL transformation.</p>
-<h2 id="ExampleSVG2PDF">ExampleSVG2PDF.java (PDF Transcoder example)</h2>
+<h2 id="examplesvg2pdfjava-pdf-transcoder-example-wzxhzdk66wzxhzdk67">ExampleSVG2PDF.java (PDF Transcoder example) # <a id="#ExampleSVG2PDF"></a></h2>
 <p>This <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleSVG2PDF.java?view=markup">example</a> shows the usage of the PDF Transcoder, a sub-application within FOP. It is used to generate a PDF document from an SVG file.</p>
-<h2 id="ExampleConcat">ExampleConcat.java (IF Concatenation example)</h2>
+<h2 id="exampleconcatjava-if-concatenation-example-wzxhzdk68wzxhzdk69">ExampleConcat.java (IF Concatenation example) # <a id="#ExampleConcat"></a></h2>
 <p>This can be found in the <code>embedding.intermediate</code> package within the examples and describes how IF can be concatenated to produce a document. Because IF has been through FOPs layout engine, it should be visually consistent with FO rendered documents while allowing the user to merge numerous documents together.</p>
-<h2 id="example-notes">Final notes</h2>
+<h2 id="final-notes-wzxhzdk70wzxhzdk71">Final notes # <a id="#example-notes"></a></h2>
 <p>These examples should give you an idea of what's possible. It should be easy to adjust these examples to your needs. Also, if you have other examples that you think should be added here, please let us know via either the fop-users or fop-dev mailing lists. Finally, for more help please send your questions to the fop-users mailing list.</p></div>
       </div>
       



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org