From 268569f67d4a7dafb3bab8566958389803c22894 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Sun, 28 Jan 2024 15:12:47 +0000 Subject: [PATCH] Describe how to use xslTNG with Oxygen --- src/guide/xml/ch02.xml | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/guide/xml/ch02.xml b/src/guide/xml/ch02.xml index 4bf48f7af..850e8376f 100755 --- a/src/guide/xml/ch02.xml +++ b/src/guide/xml/ch02.xml @@ -463,6 +463,51 @@ the files off of it, the files will be lost. +
+Run in Oxygen + +Oxygen” is a family +of tools for XML authoring and development. The DocBook +xslTNG Stylesheets are not currently shipped with Oxygen. To +take advantage of the xslTNG stylesheets, you must setup the transformation scenarios +yourself. + + + + Download the nosaxon xslTNG release that you want to use in Oxygen + (docbook-xslTNG-nosaxon-version.zip) and unzip + it somewhere in your filesystem. + (Oxygen includes Saxon EE; the integration will be cleaner if the release you + use does not include a different version of Saxon.) + + + Define a transformation scenario with + path/xslt/docbook.xsl as the XSLT + file (where path is where you unzipped the release in the previous step. + + + In order to use the extension functions defined in + , you have to add the + docbook-xslTNG-version.jar library as an + Extension and set + org.docbook.xslt.extensions as the Initializer class + in the Advanced Saxon HE/PE/EE XQuery Transformation Options for + the transformation scenario. + Without this step the basic transformation will work, but extensions like + image metadate extraction with ext:image-metadata will + not be available. + + + Set the stylesheet parameters accordingly in the transformation scenario. + + + Run the transformation to generate HTML output. You will have to copy the + resources/css and resources/js directories to + the output location in order to get the styling and interactive features. + + +
+
Extension functions