Processing ODF using styles

I've been working on output transforms, ODF (writer files) to other XML based formats.

In order to 'validate' (special definition rather than RelaxNG validation) I need style information
to convert from a flat format to a nested one.

I've created a stylesheet using XSLT 2.0 which abstracts style information into a simpler format,
resolving ancestor based sizes. I'm currently testing it.


Unzip contents.xml and styles.xml from the .odt file.
Run the stylesheet, from the same directory.

$ java -jar path/saxon8.jar -it initial -o output.xml abstractstyles.xsl

Stylesheet attached.

regards DaveP

abstractStyles.xsl.txt9.13 KB