9
Query and Transform TEI with XPath and XSLT in <oXygen/> Octavian Nadolu [email protected] @OctavianNadolu

Query and Transform TEI with XPath and XSLT in oXygen

Embed Size (px)

Citation preview

Page 1: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with XPath and XSLT in <oXygen/>

Octavian [email protected]@OctavianNadolu

Page 2: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Query documents with XPath● XPath Toolbar

● quickly execute XPath expressions

● XPath Builder View ● complex XPath expressions

Page 3: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Query documents with XPath

Both offers support like● Syntax highlight● Content completion● Validation● Documentation

Page 4: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

XPath over multiple files● Scope in XPath Toolbar and Builder

● All Project Files● Selected Project Files● Opened Dita Maps● All Opened Files● Opened Archive● A Collection of Files

Page 5: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

XPath Scope● Filter the XPath Scope

● File patterns● Only known XML Files● Enter in Archives

● Stop the XPath Execution

Page 6: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Customize TEI transformations

1. Change the transformation scenario parameters

2. Create a wrapper stylesheet, and:● Override templates● Set parameters● ...

Page 7: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Change transformation scenario● Duplicate an existing transformation scenario● Change the value of the scenario parameters

● All parameters and values are detected from stylesheet

● Easily filter the parameters to be changed

Page 8: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Create a wrapper stylesheet● Import the TEI stylesheet● Override templates● Set parameters

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:import href="html.xsl"/> ....</xsl:stylesheet>

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:import href="html.xsl"/> ....</xsl:stylesheet>

Page 9: Query and Transform TEI with XPath and XSLT in oXygen

Query and Transform TEI with <oXygen/>Query and Transform TEI with <oXygen/>

Thank you!

Questions?

<oXygen/> XML Editorhttp://[email protected]@OctavianNadolu