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 [4/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/0.95/embedding.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/embedding.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/embedding.html Tue Oct 23 15:05:41 2012
@@ -331,11 +331,11 @@ $(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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><subtitle>How to Embed Apache&trade; FOP in a Java application</subtitle><version>$Revision: 1298724 $</version></p>
-<h1 id="overview">Overview</h1>
+<h1 id="overview-wzxhzdk5wzxhzdk6">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. Renderer) to use and, if the selected renderer 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 Renderer instance (details below). Finally, you retrieve a SAX DefaultHandler instance from the Fop object and use that as the SAXResult of your transformation.
 We recently changed FOP's outer API to what we consider the final API. This might require some changes in your application. The main reasons for these changes were performance improvements due to better reuse of reusable objects and reduced use of static variables for added flexibility in complex environments.</p>
-<h1 id="basics">Basic Usage Pattern</h1>
+<h1 id="basic-usage-pattern-wzxhzdk9wzxhzdk10">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;
@@ -388,20 +388,20 @@ 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-wzxhzdk11wzxhzdk12">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.
 We know this may be an issue in multi-threaded server environments if you'd like to know what's going on in every single FOP processing run. We're planning to add an additional feedback facility to FOP which can be used to obtain all sorts of specific feedback (validation messages, layout problems etc.). "Static logging" is mainly interesting for a developer working on FOP and for advanced users who are debugging FOP. We don't consider the logging output to be useful to normal FOP users. Please have some patience until we can add this feature or jump in and help us build it. We've set up a <a href="http://wiki.apache.org/xmlgraphics-fop/ProcessingFeedback">Wiki page</a> which documents what we're going to build.
 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>
-<h2 id="render">Processing XSL-FO</h2>
+<h2 id="processing-xsl-fo-wzxhzdk13wzxhzdk14">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-wzxhzdk15wzxhzdk16">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-wzxhzdk17wzxhzdk18">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>
@@ -428,9 +428,9 @@ By default, <a href="http://commons.apac
 </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-wzxhzdk19wzxhzdk20">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-wzxhzdk21wzxhzdk22">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>
@@ -463,7 +463,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-wzxhzdk23wzxhzdk24">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
@@ -518,7 +518,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-wzxhzdk25wzxhzdk26">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>
@@ -529,16 +529,16 @@ 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="hints">Hints</h1>
-<h2 id="object-reuse">Object reuse</h2>
+<h1 id="hints-wzxhzdk27wzxhzdk28">Hints  <a id="#hints"></a></h1>
+<h2 id="object-reuse-wzxhzdk29wzxhzdk30">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-wzxhzdk31wzxhzdk32">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-wzxhzdk33wzxhzdk34">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-wzxhzdk35wzxhzdk36">Improving performance  <a id="#performance"></a></h1>
 <p>There are several options to consider:</p>
 <ul>
 <li>
@@ -557,35 +557,35 @@ The layout of the configuration file is 
 <p>Fine-tune your stylesheet to make the XSLT process more efficient and to create XSL-FO that can be processed by FOP more efficiently. Less is more: Try to make use of property inheritance where possible.</p>
 </li>
 </ul>
-<h1 id="multithreading">Multithreading FOP</h1>
+<h1 id="multithreading-fop-wzxhzdk37wzxhzdk38">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-wzxhzdk39wzxhzdk40">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-wzxhzdk41wzxhzdk42">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-wzxhzdk45wzxhzdk46">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-wzxhzdk49wzxhzdk50">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-wzxhzdk53wzxhzdk54">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-wzxhzdk57wzxhzdk58">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-wzxhzdk61wzxhzdk62">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-wzxhzdk63wzxhzdk64">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="example-notes">Final notes</h2>
+<h2 id="final-notes-wzxhzdk65wzxhzdk66">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>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/extensions.html Tue Oct 23 15:05:41 2012
@@ -334,30 +334,30 @@ $(document).ready(function () {
 <p>By "extension", we mean any data that can be placed in the input XML document that is not addressed by the XSL-FO standard. By having a mechanism for supporting extensions, FOP is able to add features that are not covered in the specification.</p>
 <p>The extensions documented here are included with FOP, and are automatically available to you. If you wish to add an extension of your own to FOP, please see the <a href="../dev/extensions.html">Developers' Extension Page</a> .
 All extensions require the correct use of an appropriate namespace in your input document.</p>
-<h1 id="svg">SVG</h1>
+<h1 id="svg-wzxhzdk2wzxhzdk3">SVG  <a id="#svg"></a></h1>
 <p>Please see the <a href="graphics.html#svg">SVG documentation</a> for more details.</p>
-<h1 id="fo-extensions">FO Extensions</h1>
-<h2 id="fox-namespace">Namespace</h2>
+<h1 id="fo-extensions-wzxhzdk4wzxhzdk5">FO Extensions  <a id="#fo-extensions"></a></h1>
+<h2 id="namespace-wzxhzdk6wzxhzdk7">Namespace # <a id="#fox-namespace"></a></h2>
 <p>By convention, FO extensions in FOP use the "fox" namespace prefix. To use any of the FO extensions, add a namespace entry for <code>http://xmlgraphics.apache.org/fop/extensions</code> to the root element:
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
                xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"></p>
-<h2 id="bookmarks">PDF Bookmarks</h2>
+<h2 id="pdf-bookmarks-wzxhzdk9wzxhzdk10">PDF Bookmarks # <a id="#bookmarks"></a></h2>
 <p>In previous versions of Apache FOP there was a <code>fox:outline</code> element which was used to create outlines in PDF files. The redesigned code makes use of the new <a href="http://www.w3.org/TR/xsl11/#fo_bookmark-tree">bookmark feature defined in the latest XSL 1.1 working draft</a> .</p>
-<h2 id="named-destinations">Anchors or Named Destinations</h2>
+<h2 id="anchors-or-named-destinations-wzxhzdk11wzxhzdk12">Anchors or Named Destinations # <a id="#named-destinations"></a></h2>
 <p>Use the fox:destination element to define "named destinations" inside a PDF document. These are useful as fragment identifiers, e.g. "http://server/document.pdf#anchor-name". fox:destination elements can be placed almost anywhere in the fo document, including a child of root, a block-level element, or an inline-level element. For the destination to actually work, it must correspond to an "id" attribute on some fo element within the document. In other words, the "id" attribute actually creates the "view" within the PDF document. The fox:destination simply gives that view an independent name.
 <fox:destination internal-destination="table-of-contents"/>
 ...
 <fo:block id="table-of-contents">Table of Contents</fo:block><warning>It is possible that in some future release of FOP, <em>all</em> elements with "id" attributes will generate named-destinations, which will eliminate the need for fox:destination.</warning></p>
-<h2 id="table-continue-label">Table Continuation Label</h2>
+<h2 id="table-continuation-label-wzxhzdk18wzxhzdk19">Table Continuation Label # <a id="#table-continue-label"></a></h2>
 <p>This extension element hasn't been reimplemented for the redesigned code, yet.</p>
-<h2 id="widow-orphan-content-limit">fox:orphan-content-limit and fox:widow-content-limit</h2>
+<h2 id="foxorphan-content-limit-and-foxwidow-content-limit-wzxhzdk20wzxhzdk21">fox:orphan-content-limit and fox:widow-content-limit # <a id="#widow-orphan-content-limit"></a></h2>
 <p>The two proprietary extension properties, fox:orphan-content-limit and fox:widow-content-limit, are used to improve the layout of list-blocks and tables. If you have a table with many entries, you don't want a single row to be left over on a page. You will want to make sure that at least two or three lines are kept together. The properties take an absolute length which specifies the area at the beginning (fox:widow-content-limit) or at the end (fox:orphan-content-limit) of a table or list-block. The properties are inherited and only have an effect on fo:table and fo:list-block. An example: fox:widow-content-limit="3 * 1.2em" would make sure the you'll have at least three lines (assuming line-height="1.2") together on a table or list-block.</p>
-<h2 id="external-document">fox:external-document</h2>
+<h2 id="foxexternal-document-wzxhzdk22wzxhzdk23">fox:external-document # <a id="#external-document"></a></h2>
 <p>This feature is incomplete. Support for multi-page documents will be added shortly. At the moment, only single-page images will work. And this will not work with RTF output.
 This is a proprietary extension element which allows to add whole images as pages to an FO document. For example, if you have a scanned document or a fax as multi-page TIFF file, you can append or insert this document using the <code>fox:external-document</code> element. Each page of the external document will create one full page in the target format.</p>
 <p>The <code>fox:external-document</code> element is structurally a peer to <code>fo:page-sequence</code> , so wherever you can put an <code>fo:page-sequence</code> you could also place a <code>fox:external-document</code> . Therefore, the specified contents for <code>fo:root</code> change to:</p>
 <p><code>(layout-master-set, declarations?, bookmark-tree?, (page-sequence|page-sequence-wrapper|fox:external-document|fox:destination)+)</code> </p>
-<h3 id="Specification">Specification</h3>
+<h3 id="specification-wzxhzdk24wzxhzdk25">Specification ## <a id="#Specification"></a></h3>
 <p>The <code>fox:external-document</code> extension formatting object is used to specify how to create a (sub-)sequence of pages within a document. The content of these pages comes from the individual subimages/pages of an image or paged document (for example: multi-page TIFF in the form of faxes or scanned documents, or PDF files). The formatting object creates the necessary areas to display one image per page.</p>
 <p>In terms of page numbers, the behaviour is the same as for <code>fo:page-sequence</code> . The placement of the image inside the page is similar to that of <code>fo:external-graphic</code> or <code>fo:instream-foreign-object</code> , i.e. the viewport (and therefore the page size) is defined by either the intrinsic size of the image or by the size properties that apply to this formatting object.</p>
 <p>Content: EMPTY</p>
@@ -420,13 +420,13 @@ This is a proprietary extension element 
 </ul>
 <p>Datatype "page-set": Value: auto | <integer-range>, Default: "auto" which means all pages/subimages of the document. <integer-range> allows values such as "7" or "1-3"
  <code>fox:external-document</code> is not suitable for concatenating FO documents. For this, XInclude is recommended.</p>
-<h2 id="transform">Free-form Transformation for fo:block-container</h2>
+<h2 id="free-form-transformation-for-foblock-container-wzxhzdk28wzxhzdk29">Free-form Transformation for fo:block-container # <a id="#transform"></a></h2>
 <p>For <code>fo:block-container</code> elements whose <code>absolute-position</code> set to "absolute" or "fixed" you can use the extension attribute <code>fox:transform</code> to apply a free-form transformation to the whole block-container. The content of the <code>fox:transform</code> attribute is the same as for <a href="http://www.w3.org/TR/SVG/coords.html#TransformAttribute">SVG's transform attribute</a> . The transformation specified here is performed in addition to other implicit transformations of the block-container (resulting from top, left and other properties) and after them.</p>
 <p>Examples: <code>fox:transform="rotate(45)"</code> would rotate the block-container by 45 degrees clock-wise around its upper-left corner. <code>fox:transform="translate(10000,0)"</code> would move the block-container to the right by 10 points (=10000 millipoints, FOP uses millipoints internally!).
 This extension attribute doesn't work for all output formats! It's currently only supported for PDF, PS and Java2D-based renderers.</p>
-<h2 id="color-functions">Color functions</h2>
+<h2 id="color-functions-wzxhzdk30wzxhzdk31">Color functions # <a id="#color-functions"></a></h2>
 <p>XSL-FO supports specifying color using the rgb(), rgb-icc() and system-color() functions. Apache FOP provides additional color functions for special use cases. Please note that using these functions compromises the interoperability of an FO document.</p>
-<h3 id="color-function-cmyk">cmyk()</h3>
+<h3 id="cmyk-wzxhzdk32wzxhzdk33">cmyk() ## <a id="#color-function-cmyk"></a></h3>
 <p><code>color cmyk(numeric, numeric, numeric, numeric)</code> </p>
 <p>This function will construct a color in device-specific CMYK color space. The numbers must be between 0.0 and 1.0. For output formats that don't support device-specific color space the CMYK value is converted to an sRGB value.</p></div>
       </div>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/fonts.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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version><authors><person email="" name="Jeremias Märki"></person><person email="" name="Tore Engvig"></person><person email="" name="Adrian Cumiskey"></person><person email="" name="Max Berger"></person></authors></p>
-<h1 id="intro">Summary</h1>
+<h1 id="summary-wzxhzdk13wzxhzdk14">Summary  <a id="#intro"></a></h1>
 <p>The following table summarizes the font capabilities of the various FOP renderers:</p>
 <table>
 <thead>
@@ -409,15 +409,15 @@ $(document).ready(function () {
 </tr>
 </tbody>
 </table>
-<h1 id="base-14-fonts-base-14fonts">Base-14 Fonts # {#Base-14+Fonts}</h1>
+<h1 id="base-14-fonts-wzxhzdk15wzxhzdk16">Base-14 Fonts  <a id="#Base-14+Fonts"></a></h1>
 <p>The Adobe PostScript and PDF Specification specify a set of 14 fonts that must be available to every PostScript interpreter and PDF reader: Helvetica (normal, bold, italic, bold italic), Times (normal, bold, italic, bold italic), Courier (normal, bold, italic, bold italic), Symbol and ZapfDingbats.</p>
 <p>Please note that recent versions of Adobe Acrobat Reader replace "Helvetica" with "Arial" and "Times" with "Times New Roman" internally. GhostScript replaces "Helvetica" with "Nimbus Sans L" and "Times" with "Nimbus Roman No9 L". Other document viewers may do similar font substitutions. If you need to make sure that there are no such substitutions, you need to specify an explicit font and embed it in the target document.</p>
-<h1 id="missing-fonts-missingfonts">Missing Fonts # {#Missing+Fonts}</h1>
+<h1 id="missing-fonts-wzxhzdk17wzxhzdk18">Missing Fonts  <a id="#Missing+Fonts"></a></h1>
 <p>When FOP does not have a specific font at its disposal (because it's not installed in the operating system or set up in FOP's configuration), the font is replaced with "any". "any" is internally mapped to the Base-14 font "Times" (see above).</p>
-<h1 id="awt">Java2D/AWT/Operating System Fonts</h1>
+<h1 id="java2dawtoperating-system-fonts-wzxhzdk19wzxhzdk20">Java2D/AWT/Operating System Fonts  <a id="#awt"></a></h1>
 <p>The Java2D family of renderers (Java2D, AWT, Print, TIFF, PNG), use the Java AWT subsystem for font metric information. Through operating system registration, the AWT subsystem knows what fonts are available on the system, and the font metrics for each one.</p>
 <p>When working with one of these output formats and you're missing a font, just install it in your operating system and they should be available for these renderers. Please note that this is not true for other output formats such as PDF or PostScript.</p>
-<h1 id="custom">Custom Fonts</h1>
+<h1 id="custom-fonts-wzxhzdk21wzxhzdk22">Custom Fonts  <a id="#custom"></a></h1>
 <p>Support for custom fonts is highly output format dependent (see above table). This section shows how to add Type 1 and TrueType fonts to the PDF, PostScript and Java2D-based renderers. Other renderers (like AFP) support other font formats. Details in this case can be found on the page about <a href="output.html">output formats</a> .</p>
 <p>Prior to FOP version 0.94, it was always necessary to create an XML font metrics file if you wanted to add a custom font. This unconvenient step has been removed and in addition to that, FOP supports auto-registration of fonts, i.e. FOP can find fonts installed in your operating system or can scan user-specified directories for fonts. Font registration via XML font metrics file is still supported and is still necessary if you want to use a TrueType Collection (*.ttc). Direct support for TrueType collections may be added later. Furthermore, the XML font metrics files are still required if you don't want to embed, but only reference a font.</p>
 <p>Basic information about fonts can be found at:</p>
@@ -429,7 +429,7 @@ $(document).ready(function () {
 <p><a href="http://partners.adobe.com/asn/developer/technotes/fonts.html">Adobe Font Technote</a> </p>
 </li>
 </ul>
-<h1 id="basics">Basic font configuration</h1>
+<h1 id="basic-font-configuration-wzxhzdk23wzxhzdk24">Basic font configuration  <a id="#basics"></a></h1>
 <p>If you want FOP to use custom fonts, you need to tell it where to find them. This is done in the configuration file and once per renderer (because each output format is a little different). In the basic form, you can either tell FOP to find your operating system fonts or you can specify directories that it will search for support fonts. These fonts will then automatically be registered.</p>
 <p><fonts>
   <!-- register all the fonts found in a directory -->
@@ -440,9 +440,9 @@ $(document).ready(function () {
 <p><!-- automatically detect operating system installed fonts -->
   <auto-detect/><br />
 </fonts>Review the documentation for <a href="configuration.html">FOP Configuration</a> for instructions on making the FOP configuration available to FOP when it runs. Otherwise, FOP has no way of finding your custom font information. It is currently not possible to easily configure fonts from Java code.</p>
-<h1 id="advanced">Advanced font configuration</h1>
+<h1 id="advanced-font-configuration-wzxhzdk35wzxhzdk36">Advanced font configuration  <a id="#advanced"></a></h1>
 <p>The instructions found above should be sufficient for most users. Below are some additional instructions in case the basic font configuration doesn't lead to the desired results.</p>
-<h2 id="type1-metrics">Type 1 Font Metrics</h2>
+<h2 id="type-1-font-metrics-wzxhzdk37wzxhzdk38">Type 1 Font Metrics # <a id="#type1-metrics"></a></h2>
 <p>FOP includes PFMReader, which reads the PFM file that normally comes with a Type 1 font, and generates an appropriate font metrics file for it. To use it, run the class org.apache.fop.fonts.apps.PFMReader:</p>
 <p>Windows:
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
@@ -455,7 +455,7 @@ PFMReader [options]:</p>
 <li><strong>-fn <fontname></strong> By default, FOP uses the fontname from the .pfm file when embedding the font. Use the "-fn" option to override this name with one you have chosen. This may be useful in some cases to ensure that applications using the output document (Acrobat Reader for example) use the embedded font instead of a local font with the same name.
 The classpath in the above example has been simplified for readability. You will have to adjust the classpath to the names of the actual JAR files in the lib directory. xml-apis.jar, xercesImpl.jar, xalan.jar and serializer.jar are not necessary for JDK version 1.4 or later.The tool will construct some values (FontBBox, StemV and ItalicAngle) based on assumptions and calculations which are only an approximation to the real values. FontBBox and Italic Angle can be found in the human-readable part of the PFB file or in the AFM file. The PFMReader tool does not yet interpret PFB or AFM files, so if you want to be correct, you may have to adjust the values in the XML file manually. The constructed values however appear to have no visible influence.</li>
 </ul>
-<h2 id="truetype-metrics">TrueType Font Metrics</h2>
+<h2 id="truetype-font-metrics-wzxhzdk39wzxhzdk40">TrueType Font Metrics # <a id="#truetype-metrics"></a></h2>
 <p>FOP includes TTFReader, which reads the TTF file and generates an appropriate font metrics file for it. Use it in a similar manner to PFMReader. For example, to create such a metrics file in Windows from the TrueType font at c:\myfonts\cmr10.ttf:
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
           org.apache.fop.fonts.apps.TTFReader [options]
@@ -500,7 +500,7 @@ TTFReader [options]:</p>
 <td></td>
 </tr>
 <tr>
-<td id="truetype-collections-metrics">## TrueType Collections Font Metrics</td>
+<td>## TrueType Collections Font Metrics # <a id="#truetype-collections-metrics"></a></td>
 <td></td>
 <td></td>
 </tr>
@@ -512,7 +512,7 @@ TTFReader [options]:</p>
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
           org.apache.fop.fonts.apps.TTFReader -ttcname "MS Mincho"
           msmincho.ttc msminch.xml</p>
-<h2 id="register">Register Fonts with FOP</h2>
+<h2 id="register-fonts-with-fop-wzxhzdk41wzxhzdk42">Register Fonts with FOP # <a id="#register"></a></h2>
 <p>You must tell FOP how to find and use the font metrics files by registering them in the <a href="configuration.html">FOP Configuration</a> . Add entries for your custom fonts, regardless of font type, to the configuration file in a manner similar to the following:</p>
 <p><fonts>
   <!-- register a particular font -->
@@ -563,7 +563,7 @@ java -cp build\fop.jar;lib\avalon-framew
 <p>If relative URLs are specified, they are evaluated relative to the value of the "font-base" setting. If there is no "font-base" setting, the fonts are evaluated relative to the base directory.</p>
 </li>
 </ul>
-<h2 id="autodetect">Auto-Detect and auto-embedd feature</h2>
+<h2 id="auto-detect-and-auto-embedd-feature-wzxhzdk57wzxhzdk58">Auto-Detect and auto-embedd feature # <a id="#autodetect"></a></h2>
 <p>When the "auto-detect" flag is set in the configuration, FOP will automatically search for fonts in the default paths for your operating system.</p>
 <p>FOP will also auto-detect fonts which are available in the classpath, if they are described as "application/x-font" in the MANIFEST.MF file. For example, if your .jar file contains font/myfont.ttf:
 Manifest-Version: 1.0</p>
@@ -573,7 +573,7 @@ Manifest-Version: 1.0</p>
 
 
 <p>This feature allows you to create JAR files containing fonts. The JAR files can be added to fop by providem them in the classpath, e.g. copying them into the lib/ directory.</p>
-<h2 id="embedding">Embedding</h2>
+<h2 id="embedding-wzxhzdk59wzxhzdk60">Embedding # <a id="#embedding"></a></h2>
 <p>The PostScript renderer does not yet support TrueType fonts, but can embed Type 1 fonts.The font is simply embedded into the PDF file, it is not converted.
 Font embedding is enabled in the userconfig.xml file and controlled by the embed-url attribute. If you don't specify the embed-url attribute the font will not be embedded, but will only be referenced.
 <warning>Omitting the embed-url attribute for CID-encoded TrueType fonts will currently produce invalid PDF files! If you create the XML font metric file using the "-enc ansi" option, you can omit the embed-url attribute for TrueType fonts but you're restricted to the WinAnsi character set.</warning>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/graphics.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/graphics.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/graphics.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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="introduction">Introduction</h1>
+<h1 id="introduction-wzxhzdk2wzxhzdk3">Introduction  <a id="#introduction"></a></h1>
 <p>After the Apache&trade; FOP 0.94 release, the image handling subsystem has been rewritten in order to improve the range of supported images and image subtypes, to lower the overall memory consumption when handling images, to produce smaller output files and to increase the performance in certain areas. Of course, this causes a few changes most of which the user will probably not notice. The most important changes are:</p>
 <ul>
 <li>
@@ -345,7 +345,7 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>The actual <a href="http://xmlgraphics.apache.org/commons/image-loader.html">image loading framework</a> no longer resides in Apache FOP, but was instead placed in <a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> .</p>
-<h1 id="support-overview">Overview of Graphics Support</h1>
+<h1 id="overview-of-graphics-support-wzxhzdk5wzxhzdk6">Overview of Graphics Support  <a id="#support-overview"></a></h1>
 <p>The table below summarizes the <em>theoretical</em> support for graphical formats within FOP. In other words, within the constraints of the limitations listed here, these formats <em>should</em> work. However, many of them have not been tested, and there may be limitations that have not yet been discovered or documented. The packages needed to support some formats are not included in the FOP distribution and must be installed separately. Follow the links in the "Support Through" columns for more details.</p>
 <table>
 <thead>
@@ -423,7 +423,7 @@ $(document).ready(function () {
  <a href="http://jai-imageio.dev.java.net/">JAI Image I/O Tools</a> is not the same as the <a href="http://java.sun.com/javase/technologies/desktop/media/jai/">JAI library</a> ! The former simply exposes JAI's codecs using the Image&nbsp;I/O API but does not include all the image manipulation functionality.</p>
 </li>
 </ul>
-<h2 id="format-map">Map of supported image formats by output format</h2>
+<h2 id="map-of-supported-image-formats-by-output-format-wzxhzdk7wzxhzdk8">Map of supported image formats by output format # <a id="#format-map"></a></h2>
 <p>Not all image formats are supported for all output formats! For example, while you can use EPS (Encapsulated PostScript) files when you generate PostScript output, this format will not be supported by any other output format. Here's an overview of which image formats are supported by which output format:</p>
 <table>
 <thead>
@@ -530,12 +530,12 @@ $(document).ready(function () {
 <p>[2]: Supported without the need to decode the image, but only for certain subtypes.</p>
 </li>
 </ul>
-<h1 id="packages">Graphics Packages</h1>
-<h2 id="native">XML Graphics Commons Native</h2>
+<h1 id="graphics-packages-wzxhzdk9wzxhzdk10">Graphics Packages  <a id="#packages"></a></h1>
+<h2 id="xml-graphics-commons-native-wzxhzdk11wzxhzdk12">XML Graphics Commons Native # <a id="#native"></a></h2>
 <p><a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> supports a number of graphic file formats natively as basic functionality: all bitmap formats for which there are Image I/O codecs available (JPEG, PNG, GIF, TIFF, etc.), EPS and EMF.</p>
-<h2 id="fop-native">FOP Native</h2>
+<h2 id="fop-native-wzxhzdk13wzxhzdk14">FOP Native # <a id="#fop-native"></a></h2>
 <p>FOP has no native image plug-ins for the image loading framework of its own but currently hosts the Batik-dependent SVG and WMF plug-ins until they can be moved to <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> .</p>
-<h2 id="batik">Apache Batik</h2>
+<h2 id="apache-batik-wzxhzdk15wzxhzdk16">Apache Batik # <a id="#batik"></a></h2>
 <p><a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> will later receive the SVG and WMF plug-ins for the image loading framework that are currently hosted inside FOP.</p>
 <p>Current FOP distributions include a distribution of the <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> . Because Batik's API changes frequently, it is highly recommended that you use the version that ships with FOP, at least when running FOP.
 <warning>Batik must be run in a graphical environment.</warning>
@@ -552,38 +552,38 @@ Batik must be run in a graphical environ
 <p>Install a toolkit which emulates AWT without the need for an underlying X server. One example is the <a href="http://www.eteks.com/pja/en">PJA toolkit</a> , which is free and comes with detailed installation instructions.</p>
 </li>
 </ul>
-<h2 id="imageio">Image I/O</h2>
+<h2 id="image-io-wzxhzdk19wzxhzdk20">Image I/O # <a id="#imageio"></a></h2>
 <p>The image loading framework in <a href="http://xmlgraphics.apache.org/commons/">XML Graphics Commons</a> provides a wrapper to load images through the <a href="http://java.sun.com/j2se/1.4.2/docs/guide/imageio/index.html">JDK's Image I/O API</a> (JSR 015). Image I/O allows to dynamically add additional image codecs. An example of such an add-on library are the <a href="http://java.sun.com/products/java-media/jai/">JAI Image I/O Tools</a> available from Sun.</p>
-<h1 id="image-formats">Details on image formats</h1>
-<h2 id="bmp">BMP</h2>
+<h1 id="details-on-image-formats-wzxhzdk21wzxhzdk22">Details on image formats  <a id="#image-formats"></a></h1>
+<h2 id="bmp-wzxhzdk23wzxhzdk24">BMP # <a id="#bmp"></a></h2>
 <p>BMP images are supported through an Image I/O codec. There may be limitations of the codec which are outside the control of Apache FOP.</p>
-<h2 id="emf">EMF</h2>
+<h2 id="emf-wzxhzdk25wzxhzdk26">EMF # <a id="#emf"></a></h2>
 <p>Windows Enhanced Metafiles (EMF) are only supported in RTF output where they are embedded without decoding.</p>
-<h2 id="eps">EPS</h2>
+<h2 id="eps-wzxhzdk27wzxhzdk28">EPS # <a id="#eps"></a></h2>
 <p>Apache FOP allows to use EPS files when generating PostScript output only.</p>
 <p>Other output targets can't be supported at the moment because FOP lacks a PostScript interpreter. Furthermore, FOP is currently not able to parse the preview bitmaps sometimes contained in EPS files.</p>
-<h2 id="gif">GIF</h2>
+<h2 id="gif-wzxhzdk29wzxhzdk30">GIF # <a id="#gif"></a></h2>
 <p>GIF images are supported through an Image&nbsp;I/O codec. Transparency is supported but not guaranteed to work with every output format.</p>
-<h2 id="jpeg">JPEG</h2>
+<h2 id="jpeg-wzxhzdk32wzxhzdk33">JPEG # <a id="#jpeg"></a></h2>
 <p>FOP native support (i.e. the handling of undecoded images) of JPEG does not include all variants, especially those containing unusual color lookup tables and color profiles. If you have trouble with a JPEG image in FOP, try opening it with an image processing program (such as Photoshop or Gimp) and then saving it. Specifying 24-bit color output may also help. For the PDF and PostScript renderers most JPEG images can be passed through without decompression. User reports indicate that grayscale, RGB, and CMYK color spaces are all rendered properly. However, for other output formats, the JPEG images have to be decompressed. Tests have shown that there are some limitation in some Image&nbsp;I/O codecs concerning images in the CMYK color space. Work-arounds are in place but may not always work as expected.</p>
-<h2 id="png">PNG</h2>
+<h2 id="png-wzxhzdk35wzxhzdk36">PNG # <a id="#png"></a></h2>
 <p>PNG images are supported through an Image&nbsp;I/O codec. Transparency is supported but not guaranteed to work with every output format.</p>
-<h2 id="svg">SVG</h2>
-<h3 id="svg-intro">Introduction</h3>
+<h2 id="svg-wzxhzdk38wzxhzdk39">SVG # <a id="#svg"></a></h2>
+<h3 id="introduction-wzxhzdk40wzxhzdk41">Introduction ## <a id="#svg-intro"></a></h3>
 <p>FOP uses <a href="#batik">Apache Batik</a> for SVG support. This format can be handled as an <code>fo:instream-foreign-object</code> or in a separate file referenced with <code>fo:external-graphic</code> .
 Batik's SVG Rasterizer utility may also be used to convert standalone SVG documents into PDF. For more information please see the <a href="http://xmlgraphics.apache.org/batik/svgrasterizer.html">SVG Rasterizer documentation</a> on the Batik site.</p>
-<h3 id="svg-pdf-graphics">Placing SVG Graphics into PDF</h3>
+<h3 id="placing-svg-graphics-into-pdf-wzxhzdk42wzxhzdk43">Placing SVG Graphics into PDF ## <a id="#svg-pdf-graphics"></a></h3>
 <p>The SVG is rendered into PDF by using PDF commands to draw and fill lines and curves. This means that the graphical objects created with this remain as vector graphics. The same applies to PostScript output. For other output formats the SVG graphic may be converted to a bitmap image.</p>
 <p>There are a number of SVG things that cannot be converted directly into PDF. Parts of the graphic such as effects, patterns and images are inserted into the PDF as a raster graphic. The resolution of these raster images can be controlled through the "target resolution" setting in the <a href="configuration.html">configuration</a> .</p>
 <p>Currently transparency is limited in PDF so many SVG images that contain effects or graphics with transparent areas may not be displayed correctly.</p>
-<h3 id="svg-pdf-text">Placing SVG Text into PDF and PostScript</h3>
+<h3 id="placing-svg-text-into-pdf-and-postscript-wzxhzdk44wzxhzdk45">Placing SVG Text into PDF and PostScript ## <a id="#svg-pdf-text"></a></h3>
 <p>If possible, Batik will use normal PDF or PostScript text when inserting text. It does this by checking if the text can be drawn normally and the font is supported. This example svg <a href="../dev/svg/text.svg">text.svg</a> /text.pdfshows how various types and effects with text are handled. Note that tspan and outlined text are not yet implemented.</p>
 <p>Otherwise, text is converted and drawn as a set of shapes by Batik, using the stroking text painter. This means that a typical character will have about 10 curves (each curve consists of at least 20 characters). This can make the output files large and when it is viewed the viewer may not normally draw those fine curves very well (In Adobe Acrobat, turning on "Smooth Line Art" in the preferences will fix this). Copy/paste functionality will not be supported in this case. If the text is inserted into the output file using the inbuilt text commands it will use a single character.</p>
 <p>Note that because SVG text can be rendered as either text or a vector graphic, you may need to consider settings in your viewer for both. The Acrobat viewer has both "smooth line art" and "smooth text" settings that may need to be set for SVG images to be displayed nicely on your screen (see Edit / Preferences / Display). This setting will not affect the printing of your document, which should be OK in any case, but will only affect the quality of the screen display.</p>
-<h3 id="svg-scaling">Scaling</h3>
+<h3 id="scaling-wzxhzdk46wzxhzdk47">Scaling ## <a id="#svg-scaling"></a></h3>
 <p>Currently, SVG images are rendered with the dimensions specified <em>in the SVG file</em> , within the viewport specified in the fo:external-graphic element. For everything to work properly, the two should be equal. The SVG standard leaves this issue as an implementation detail. Additional scaling options are available through XSL-FO means.</p>
 <p>If you use pixels to specify the size of an SVG graphic the "source resolution" setting in the <a href="configuration.html">configuration</a> will be used to determine the size of a pixel. The use of pixels to specify sizes is discouraged as they may be interpreted differently in different environments.</p>
-<h3 id="svg-problems">Known Problems</h3>
+<h3 id="known-problems-wzxhzdk48wzxhzdk49">Known Problems ## <a id="#svg-problems"></a></h3>
 <ul>
 <li>
 <p>Soft mask transparency is combined with white so that it looks better on PDF 1.3 viewers but this causes the soft mask to be slightly lighter or darker on PDF 1.4 viewers.</p>
@@ -598,18 +598,18 @@ Batik's SVG Rasterizer utility may also 
 <p>Uniform transparency for images and other SVG elements that are converted into a raster graphic are not drawn properly in PDF. The image is opaque.</p>
 </li>
 </ul>
-<h2 id="tiff">TIFF</h2>
+<h2 id="tiff-wzxhzdk50wzxhzdk51">TIFF # <a id="#tiff"></a></h2>
 <p>FOP can embed TIFF images without decompression into PDF, PostScript and AFP if they have either CCITT T.4, CCITT T.6, or JPEG compression. Otherwise, a TIFF-capable Image&nbsp;I/O codec is necessary for decoding the image.</p>
 <p>There may be some limitation concerning images in the CMYK color space.</p>
-<h2 id="wmf">WMF</h2>
+<h2 id="wmf-wzxhzdk53wzxhzdk54">WMF # <a id="#wmf"></a></h2>
 <p>Windows Metafiles (WMF) are supported through classes in <a href="http://xmlgraphics.apache.org/batik/">Apache Batik</a> . At the moment, support for this format is experimental and may not always work as expected.</p>
-<h1 id="resolution">Graphics Resolution</h1>
+<h1 id="graphics-resolution-wzxhzdk55wzxhzdk56">Graphics Resolution  <a id="#resolution"></a></h1>
 <p>Some bitmapped image file formats store a dots-per-inch (dpi) or other resolution values. FOP tries to use this resolution information whenever possible to determine the image's intrinsic size. This size is used during the layout process when it is not superseded by an explicit size on fo:external-graphic (content-width and content-height properties).</p>
 <p>Please note that not all images contain resolution information. If it's not available the source resolution set on the FopFactory (or through the user configuration XML) is used. The default here is 72 dpi.</p>
 <p>Bitmap images are generally embedded into the output format at their original resolution (as is). No resampling of the image is performed. Explicit resampling is on our wishlist, but hasn't been implemented, yet. Bitmaps included in SVG graphics may be resampled to the resolution specified in the "target resolution" setting in the <a href="configuration.html">configuration</a> if SVG filters are applied. This can be used as a work-around to resample images in FO documents.</p>
-<h1 id="page-selection">Page selection for multi-page formats</h1>
+<h1 id="page-selection-for-multi-page-formats-wzxhzdk57wzxhzdk58">Page selection for multi-page formats  <a id="#page-selection"></a></h1>
 <p>Some image formats such as TIFF support multiple pages/sub-images per file. You can select a particular page using a special URI fragment in the form: <uri>#page=<nr> (for example: <code>http://localhost/images/myimage.tiff#page=3</code> )</p>
-<h1 id="caching">Image caching</h1>
+<h1 id="image-caching-wzxhzdk61wzxhzdk62">Image caching  <a id="#caching"></a></h1>
 <p>FOP caches images between runs. There is one cache per FopFactory instance. The URI is used as a key to identify images which means that when a particular URI appears again, the image is taken from the cache. If you have a servlet that generates a different image each time it is called with the same URI you need to use a constantly changing dummy parameter on the URI to avoid caching.</p>
 <p>The image cache has been improved considerably in the redesigned code. Therefore, resetting the image cache should be a thing of the past. If you still experience OutOfMemoryErrors, please notify us.</p>
 <p>If all else fails, the image cache can be cleared like this: <code>fopFactory.getImageManager().getCache().clearCache();</code> </p></div>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/hyphenation.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/hyphenation.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/hyphenation.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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="support">Hyphenation Support</h1>
-<h2 id="intro">Introduction</h2>
+<h1 id="hyphenation-support-wzxhzdk2wzxhzdk3">Hyphenation Support  <a id="#support"></a></h1>
+<h2 id="introduction-wzxhzdk4wzxhzdk5">Introduction # <a id="#intro"></a></h2>
 <p>Apache&trade; FOP uses Liang's hyphenation algorithm, well known from TeX. It needs language specific pattern and other data for operation.</p>
 <p>Because of <a href="#license-issues">licensing issues</a> (and for convenience), all hyphenation patterns for FOP are made available through the <a href="http://offo.sourceforge.net/hyphenation/index.html">Objects For Formatting Objects</a> project.
 If you have made improvements to an existing FOP hyphenation pattern, or if you have created one from scratch, please consider contributing these to OFFO so that they can benefit other FOP users as well. Please inquire on the <a href="../maillist.html#fop-user">FOP User mailing list</a> .</p>
-<h2 id="license-issues">License Issues</h2>
+<h2 id="license-issues-wzxhzdk7wzxhzdk8">License Issues # <a id="#license-issues"></a></h2>
 <p>Many of the hyphenation files distributed with TeX and its offspring are licenced under the <a href="http://www.latex-project.org/lppl.html">LaTeX Project Public License (LPPL)</a> , which prevents them from being distributed with Apache software. The LPPL puts restrictions on file names in redistributed derived works which we feel can't guarantee. Some hyphenation pattern files have other or additional restrictions, for example against use for commercial purposes.</p>
 <p>Although Apache FOP cannot redistribute hyphenation pattern files that do not conform with its license scheme, that does not necessarily prevent users from using such hyphenation patterns with FOP. However, it does place on the user the responsibility for determining whether the user can rightly use such hyphenation patterns under the hyphenation pattern license.
 <warning>The user is responsible to settle license issues for hyphenation pattern files that are obtained from non-Apache sources.</warning></p>
-<h2 id="sources">Sources of Custom Hyphenation Pattern Files</h2>
+<h2 id="sources-of-custom-hyphenation-pattern-files-wzxhzdk11wzxhzdk12">Sources of Custom Hyphenation Pattern Files # <a id="#sources"></a></h2>
 <p>The most important source of hyphenation pattern files is the <a href="http://www.ctan.org/tex-archive/language/hyphenation/">CTAN TeX Archive</a> .</p>
-<h2 id="install">Installing Custom Hyphenation Patterns</h2>
+<h2 id="installing-custom-hyphenation-patterns-wzxhzdk13wzxhzdk14">Installing Custom Hyphenation Patterns # <a id="#install"></a></h2>
 <p>To install a custom hyphenation pattern for use with FOP:</p>
 <ol>
 <li>
@@ -381,7 +381,7 @@ and run Ant with build target <code>jar-
 </li>
 </ol>
 <p><warning>Either of these three options will ensure hyphenation is working when using FOP from the command-line. If FOP is being embedded, remember to add the location(s) of the hyphenation JAR(s) to the CLASSPATH (option 1 and 2) or to set the <a href="configuration.html#hyphenation-dir"><hyphenation-dir></a> configuration option programmatically (option 3).</warning></p>
-<h1 id="patterns">Hyphenation Patterns</h1>
+<h1 id="hyphenation-patterns-wzxhzdk18wzxhzdk19">Hyphenation Patterns  <a id="#patterns"></a></h1>
 <p>If you would like to build your own hyphenation pattern files, or modify existing ones, this section will help you understand how to do so. Even when creating a pattern file from scratch, it may be beneficial to start with an existing file and modify it. See <a href="http://offo.sourceforge.net/hyphenation/index.html">OFFO's Hyphenation page</a> for examples. Here is a brief explanation of the contents of FOP's hyphenation patterns:
 <warning>The remaining content of this section should be considered "draft" quality. It was drafted from theoretical literature, and has not been tested against actual FOP behavior. It may contain errors or omissions. Do not rely on these instructions without testing everything stated here. If you use these instructions, please provide feedback on the <a href="../maillist.html#fop-user">FOP User mailing list</a> , either confirming their accuracy, or raising specific problems that we can address.</warning></p>
 <ul>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/index.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/index.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/index.html Tue Oct 23 15:05:41 2012
@@ -331,12 +331,12 @@ $(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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="intro">Introduction</h1>
+<h1 id="introduction-wzxhzdk2wzxhzdk3">Introduction  <a id="#intro"></a></h1>
 <p>The Apache&trade; FOP team is proud to present to you this production quality release. We're still in the process of adding new features. We welcome any feedback you might have and even more, any other form of help to get the project forward.</p>
 <p>This sixth release contains many bug fix release and new features compared to 0.94. To see what has changed since the last release, please visit the <a href="changes_0.95.html">Changes Page</a> and the <a href="releaseNotes_0.95.html">Release Notes</a> .</p>
-<h1 id="upgrading">Upgrading from an earlier version</h1>
+<h1 id="upgrading-from-an-earlier-version-wzxhzdk5wzxhzdk6">Upgrading from an earlier version  <a id="#upgrading"></a></h1>
 <p>If you're upgrading to this version from an earlier version of FOP, please read the information contained on the <a href="upgrading.html">Upgrading page</a> !</p>
-<h1 id="download">Download</h1>
+<h1 id="download-wzxhzdk7wzxhzdk8">Download  <a id="#download"></a></h1>
 <p>To download this version, please visit the <a href="../download.html">download page</a> .</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/intermediate.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/intermediate.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/intermediate.html Tue Oct 23 15:05:41 2012
@@ -332,10 +332,10 @@ $(document).ready(function () {
       	<!-- <div id="breadcrumb"><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/fop/">Fop</a>&nbsp;&raquo&nbsp;<a href="/fop/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version>
 Please note that the intermediate format is an <strong>advanced feature</strong> and can be ignored by most users of Apache&trade; FOP.</p>
-<h1 id="introduction">Introduction</h1>
+<h1 id="introduction-wzxhzdk4wzxhzdk5">Introduction  <a id="#introduction"></a></h1>
 <p>The intermediate format (IF) is a proprietary XML format that represents the area tree generated by the layout engine. The area tree is conceptually defined in the <a href="http://www.w3.org/TR/2001/REC-xsl-20011015/slice1.html#section-N742-Formatting">XSL-FO specification in chapter 1.1.2</a> . The IF can be generated through the area tree XML Renderer (the XMLRenderer).</p>
 <p>The intermediate format can be used to generate intermediate documents that are modified before they are finally rendered to their ultimate output format. Modifications include adjusting and changing trait values, adding or modifying area objects, inserting prefabricated pages, overlays, imposition (n-up, rotation, scaling etc.). Multiple IF files can be combined to a single output file.</p>
-<h1 id="usage">Usage of the Intermediate Format</h1>
+<h1 id="usage-of-the-intermediate-format-wzxhzdk6wzxhzdk7">Usage of the Intermediate Format  <a id="#usage"></a></h1>
 <p>As already mentioned, the IF is generated by using the <strong>XMLRenderer</strong> (MIME type: <strong>application/X-fop-areatree</strong> ). So, you basically set the right MIME type for the output format and process your FO files as if you would create a PDF file. However, there is an important detail to consider: The various Renderers don't all use the same font sources. To be able to create the right area tree for the ultimate output file, you need to create the IF file using the right font setup. This is achieved by telling the XMLRenderer to mimic another renderer. This is done by calling the XMLRenderer's mimicRenderer() method with an instance of the ultimate target renderer as the single parameter. This has a consequence: An IF file rendered with the Java2DRenderer may not look as expected when it was actually generated for the PDF renderer. For renderers that use the same font setup, this restriction does not apply (PDF and PS, for example). Generating the inte
 rmediate format file is the first step.</p>
 <p>The second step is to reparse the IF file using the <strong>AreaTreeParser</strong> which is found in the org.apache.fop.area package. The pages retrieved from the IF file are added to an AreaTreeModel instance from where they are normally rendered using one of the available Renderer implementations. You can find examples for the IF processing in the <a href="http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/"></a> directory in the FOP distribution</p>
 <p>The basic pattern to parse the IF format looks like this:</p>
@@ -367,11 +367,11 @@ try {
 }
 This example simply reads an IF file and renders it to a PDF file. Please note, that in normal FOP operation you're shielded from having to instantiate the FontInfo object yourself. This is normally a task of the AreaTreeHandler which is not present in this scenario. The same applies to the AreaTreeModel instance, in this case an instance of a subclass called RenderPagesModel. RenderPagesModel is ideal in this case as it has very little overhead processing the individual pages. An important line in the example is the call to <code>endDocument()</code> on the AreaTreeModel. This lets the Renderer know that the processing is now finished.</p>
 <p>The intermediate format can also be used from the <a href="running.html#standalone-start">command-line</a> by using the "-atin" parameter for specifying the area tree XML as input file. You can also specify a "mimic renderer" by inserting a MIME type between "-at" and the output file.</p>
-<h2 id="concat">Concatenating Documents</h2>
+<h2 id="concatenating-documents-wzxhzdk8wzxhzdk9">Concatenating Documents # <a id="#concat"></a></h2>
 <p>This initial example is obviously not very useful. It would be faster to create the PDF file directly. As the <a href="http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/examples/embedding/java/embedding/intermediate/ExampleConcat.java">ExampleConcat.java</a> example shows you can easily parse multiple IF files in a row and add the parsed pages to the same AreaTreeModel instance which essentially concatenates all the input document to one single output document.</p>
-<h2 id="modifying">Modifying Documents</h2>
+<h2 id="modifying-documents-wzxhzdk10wzxhzdk11">Modifying Documents # <a id="#modifying"></a></h2>
 <p>One of the most important use cases for the intermediate format is obviously modifying the area tree XML before finally rendering it to the target format. You can easily use XSLT to process the IF file according to your needs. Please note, that we will currently not formally describe the intermediate format. You need to have a good understanding its structure so you don't create any non-parseable files. We may add an XML Schema and more detailed documentation at a later time. You're invited to help us with that.</p>
-<h2 id="advanced">Advanced Use</h2>
+<h2 id="advanced-use-wzxhzdk12wzxhzdk13">Advanced Use # <a id="#advanced"></a></h2>
 <p>The generation of the intermediate format as well as it parsing process has been designed to allow for maximum flexibility and optimization. Please note that you can call <code>setTransformerHandler()</code> on XMLRenderer to give the XMLRenderer your own TransformerHandler instance in case you would like to do custom serialization (to a W3C DOM, for example) and/or to directly modify the area tree using XSLT. The AreaTreeParser on the other side allows you to retrieve a ContentHandler instance where you can manually send SAX events to to start the parsing process (see <code>getContentHandler()</code> ).</p></div>
       </div>
       

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/knownissues_overview.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/knownissues_overview.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/knownissues_overview.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/0.95/">0.95</a></div> -->
       	<div class="section-content"><p><version>$Revision: 1298724 $</version></p>
-<h1 id="known-issues-knownissues">Known issues # {#Known+issues}</h1>
+<h1 id="known-issues-wzxhzdk2wzxhzdk3">Known issues  <a id="#Known+issues"></a></h1>
 <p>This page lists currently known issues in the current release.</p>
 <p>For additional information on known issues in Apache&trade; FOP, please have a look at the following pages, too:</p>
 <ul>
@@ -343,10 +343,10 @@ $(document).ready(function () {
 </li>
 </ul>
 <p>Apache FOP has an extensive automated testing infrastructure. Parts of this infrastructure are several sets of test cases. When a test case is listed in disabled-testcases.xml it is disabled in the JUnit tests during the normal build process. This indicates a problem in the current codebase. When a bug is fixed or a missing feature is added the entry for the relevant test case(s) are removed.</p>
-<h2 id="fo-tree-fotree">FO Tree ## {#FO+Tree}</h2>
+<h2 id="fo-tree-wzxhzdk5wzxhzdk6">FO Tree # <a id="#FO+Tree"></a></h2>
 <p>This section lists disabled test cases in the test suite for the FO tree tests, at the time of the release.</p>
 <p><strong>from-table-column_marker.fo</strong> (Markers and core function evaluation):<br></br>The code currently evaluates this function according to the column in which the marker appears in the source document, rather than the column it is retrieved in.</p>
-<h2 id="layout-engine-layoutengine">Layout Engine ## {#Layout+Engine}</h2>
+<h2 id="layout-engine-wzxhzdk9wzxhzdk10">Layout Engine # <a id="#Layout+Engine"></a></h2>
 <p>This section lists disabled test cases in the test suite for the layout engine tests, at the time of the release.</p>
 <p><strong>basic-link_external-destination_2.xml</strong> (External link around an SVG not properly sized):<br></br>The bpd trait of the inlineparent area for the basic-link is not sized correctly if it wraps an image that is higher than the nominal line.</p>
 <p><strong>block-container_space-before_space-after_3.xml</strong> (Auto-height block-containers produce fences):<br></br>Block-containers with no height currently don't create a fence for spaces as they should (they behave like a normal block).</p>
@@ -387,7 +387,7 @@ $(document).ready(function () {
 <p><strong>table_border-width_conditionality.xml</strong> (Border conditionality on table):<br></br>The code should be ok, but the test case uses shorthands and therefore is probably not expressing the indended outcome according to the spec. The test case should be revisited.</p>
 <p><strong>wrapper_block_id.xml</strong> (fo:wrapper around block-level content (with id)):<br></br>"id" attributes on fo:wrapper around block-level content don't get added to the area tree.</p>
 <p><strong>block_shy_linebreaking_hyph.xml</strong> (Soft hyphen with normal hyphenation enabled):<br></br>A soft hyphen should be a preferred as break compared to a normal hyphenation point but is not.</p>
-<h2 id="other-known-issues-otherknownissues">Other known issues ## {#Other+known+issues}</h2>
+<h2 id="other-known-issues-wzxhzdk95wzxhzdk96">Other known issues # <a id="#Other+known+issues"></a></h2>
 <p>This section lists other known issues.</p>
 <ul>
 <li>

Modified: websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/0.95/metadata.html Tue Oct 23 15:05:41 2012
@@ -330,14 +330,14 @@ $(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/0.95/">0.95</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>Document metadata is an important tool for categorizing and finding documents. Various formats support different kinds of metadata representation and to different levels. One of the more popular and flexible means of representing document or object metadata is <a href="http://www.adobe.com/products/xmp/">XMP (eXtensible Metadata Platform, specified by Adobe)</a> . PDF 1.4 introduced the use of XMP. The XMP specification lists recommendation for embedding XMP metdata in other document and image formats. Given its flexibility it makes sense to make use this approach in the XSL-FO context. Unfortunately, unlike SVG which also refers to XMP, XSL-FO doesn't recommend a preferred way of specifying document and object metadata. Therefore, there's no portable way to represent metadata in XSL-FO documents. Each implementation does it differently.</p>
-<h1 id="xmp-in-fo">Embedding XMP in an XSL-FO document</h1>
+<h1 id="embedding-xmp-in-an-xsl-fo-document-wzxhzdk2wzxhzdk3">Embedding XMP in an XSL-FO document  <a id="#xmp-in-fo"></a></h1>
 <p>As noted above, there's no officially recommended way to embed metadata in XSL-FO. Apache&trade; FOP supports embedding XMP in XSL-FO. Currently, only support for document-level metadata is implemented. Object-level metadata will be implemented when there's interest.</p>
 <p>Document-level metadata can be specified in the <code>fo:declarations</code> element. XMP specification recommends to use <code>x:xmpmeta</code> , <code>rdf:RDF</code> , and <code>rdf:Description</code> elements as shown in example below. Both <code>x:xmpmeta</code> and <code>rdf:RDF</code> elements are recognized as the top-level element introducing an XMP fragment (as per the XMP specification).</p>
-<h2 id="xmp-example">Example</h2>
+<h2 id="example-wzxhzdk5wzxhzdk6">Example # <a id="#xmp-example"></a></h2>
 <p class="."></p>
-<h1 id="xmp-impl-in-fop">Implementation in Apache FOP</h1>
+<h1 id="implementation-in-apache-fop-wzxhzdk7wzxhzdk8">Implementation in Apache FOP  <a id="#xmp-impl-in-fop"></a></h1>
 <p>Currently, XMP support is only available for PDF output.</p>
 <p>Originally, you could set some metadata information through FOP's FOUserAgent by using its set*() methods (like setTitle(String) or setAuthor(String). These values are directly used to set value in the PDF Info object. Since PDF 1.4, adding metadata as an XMP document to a PDF is possible. That means that there are now two mechanisms in PDF that hold metadata.</p>
 <p>Apache FOP now synchronizes the Info and the Metadata object in PDF, i.e. when you set the title and the author through the FOUserAgent, the two values will end up in the (old) Info object and in the new Metadata object as XMP content. If instead of FOUserAgent, you embed XMP metadata in the XSL-FO document (as shown above), the XMP metadata will be used as-is in the PDF Metadata object and some values from the XMP metadata will be copied to the Info object to maintain backwards-compatibility for PDF readers that don't support XMP metadata.</p>
@@ -395,7 +395,7 @@ $(document).ready(function () {
 <td></td>
 </tr>
 <tr>
-<td id="namespaces">## Namespaces</td>
+<td>## Namespaces # <a id="#namespaces"></a></td>
 <td></td>
 </tr>
 </tbody>
@@ -430,7 +430,7 @@ $(document).ready(function () {
 </table>
 <p>Please refer to the <a href="http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf">XMP Specification</a> for information on other metadata namespaces.</p>
 <p>Property sets (Namespaces) not listed here are simply passed through to the final document (if supported). That is useful if you want to specify a custom metadata schema.</p>
-<h1 id="links">Links</h1>
+<h1 id="links-wzxhzdk9wzxhzdk10">Links  <a id="#links"></a></h1>
 <ul>
 <li>
 <p><a href="http://www.adobe.com/products/xmp/">Adobe's Extensible Metadata Platform (XMP) website</a> </p>



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