24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Transforming Documents | 289• XSL Formatting Objects (XSL:FO) - XSL:FO is an <strong>XML</strong> vocabulary for specifying formatting semantics.<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> supports XSLT/XPath version 1.0 using Saxon 6.5.5, Xalan, Xsltproc, MS<strong>XML</strong> (3.0, 4.0,.NET) and XSLT/XPath 2.0 by using Saxon 9.3.0.5 HE, Saxon 9.3.0.5 PE, and Saxon 9.3.0.5 EE.Transformation ScenarioBefore transforming an <strong>XML</strong> document in <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> you must define a transformation scenario toapply to that document. A scenario is a set of values for various parameters defining a transformation. It is not relatedto any particular document but to a document type:• Scenarios that apply to <strong>XML</strong> files - Such a scenario contains the location of an XSLT stylesheet that is applied onthe edited <strong>XML</strong> document and other transform parameters.• Scenarios that apply to XSLT files - Such a scenario contains the location of an <strong>XML</strong> document that the editedXSLT stylesheet is applied on and other transform parameters.• Scenarios that apply to XQuery files - Such a scenario contains the location of an <strong>XML</strong> source that the editedXQuery file is applied on and other transform parameters. When the <strong>XML</strong> source is a native <strong>XML</strong> database the <strong>XML</strong>source field of the scenario is empty because the <strong>XML</strong> data is read with XQuery specific functions like document().When the <strong>XML</strong> source is a local <strong>XML</strong> file the URL of the file is specified in the <strong>XML</strong> input field of the scenario.• Scenarios that apply to SQL files - Such a scenario specifies a database connection for the database server thatwill run the SQL file associated with the scenario. The data processed by the SQL script is located in the database.• Scenarios that apply to XProc files - Such a scenario contains the location of an XProc script and other transformparameters.• DITA-OT scenarios - Such a scenario provides the parameters for an Ant transformation that will execute a DITA-OTbuild script. <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> comes with a built-in version of Ant and a built-in version of DITA-OTbut different versions can be set in the scenario.A scenario can be created at document type level or at global level. The scenarios defined at document type level areavailable only for the documents that match that document type. The global scenarios are available for any document.In order to apply a transformation scenario one has to press theTransformation toolbar.Apply Transformation Scenario button from theBatch TransformationA transform action can be applied on a batch of files from the Project view's contextual menu without having to openthe files:•Apply Transformation Scenario - Applies the transformation scenario associated to each of the selected files.If the currently processed file does not have an associated transformation scenario then a warning is displayed in theWarnings view.•• Transform with... - Allows you to select one transformation scenario to be applied to each one of the currentlyselected files.xsl:message output information is collected and displayed in the Results View. All entries in the Results View point tothe location of the code that triggered them.Note: When you trigger a batch transformation, the output messages from the previous one are deleted.Built-in Transformation ScenariosIf the Apply Transformation Scenario button from the Transformation toolbar is pressed and there is no scenarioassociated with the edited document but this contains an xml-stylesheet processing instruction referring to a XSLTstylesheet (commonly used to display the document in Internet browsers), then <strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> will promptthe user and offer the option to associate the document with a default scenario based on this processing instruction. Thedefault scenario contains in the XSL URL field the URL from the href attribute of the processing instruction. This

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!