Sometimes it is desirable to have extensions to XSL-FO in order to support some feature of the output format which isn't covered by the XSL-FO specification.
These extension are available by default. They are automatically loaded and you only need to provide the correct namespace for your embedded XML markup.
Please see the SVG page for more details.
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:
It works similarly to a basic-link. There is also an external-destination property, but it isn't supported currently. See the pdfoutline.fo file in examples/fo/basic for a more complete example.
Please see examples/fo/basic/contlabel.fo
To add your own extension you need to do the following things.