From 71f91369f5741c37c65ec741c81d1e1f31ba1141 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Mon, 11 Aug 2003 23:18:08 +0000 Subject: [PATCH] 1. add documentation of fox:destination 2. break explanation of fox: namespace into a separate section so that it is clear that it applies to all of the fox: extensions 3. some other minor cleanup git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196783 13f79535-47bb-0310-9956-ffa450edef68 --- .../content/xdocs/extensions.xml | 38 +++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/documentation/content/xdocs/extensions.xml b/src/documentation/content/xdocs/extensions.xml index 716b96dc8..256fc1424 100644 --- a/src/documentation/content/xdocs/extensions.xml +++ b/src/documentation/content/xdocs/extensions.xml @@ -17,21 +17,25 @@ By having a mechanism for supporting extensions, FOP is able to add features tha Please see the SVG documentation for more details.

+
+ FO Extentions +
+ Namespace +

By convention, FO extensions in FOP use the "fox:" namespace identifier. +To use any of the FO extensions, add a namespace entry for http://xml.apache.org/fop/extensions +to the root element:

+]]> +
PDF Bookmarks

-To use this standard FOP extension, you need to add a namespace entry for -http://xml.apache.org/fop/extensions on the root element. -

-

You can provide outlines inside the root object (but outside any page-sequences or other formatting objects). Here's an example of an outline entry:

- - + Running FOP @@ -45,12 +49,30 @@ property, but it isn't supported currently. See the pdfoutline.fo file in examples/fo/basic for a more complete example.

+
+ Anchors or Named Destinations +

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. +

+ +... +Table of Contents]]> + It is possible that in some future release of FOP, all elements with +"id" attributes will generate named-destinations, which will eliminate the need for +fox:destination. +
- Continued-label (for table-header/-footer + Continued-label (for table-header/-footer)

Please see examples/fo/basic/contlabel.fo

+
-- 2.39.5