Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
Description
I have created a patch to add the XSL stylesheet to extract default values from the ODF 1.2 specification part 1.
The XSL file was former a part of the downloadable tools ZIP for the ODF TOOLKIT project, see http://odftoolkit.org/projects/odfdom/downloads/download/internal-tools/odf12-spec.zip
The tools there consist asise of the XSLT file of a starting batch scripts for bash and DOS and was created by myself.
The result of the transformation is being used for source code generation in ODFDOM and is the latter part of the following configuration file:
https://svn.apache.org/repos/asf/incubator/odf/trunk/odfdom/src/codegen/resources/dom/config.xml
Recently I have updated the XSLT to be more tolerant with ODF to keep on extracting the default values of attributes.
The update contains my changes and solves the following problems:
1) There are two span splitting the element name, e.g. "style:background-image"
<text:span text:style-name="Element"><style:background-</text:span>
<text:span text:style-name="Element">image></text:span>
or
2) A flood of references
<text:h text:style-name="Heading_20_3" text:outline-level="3">
<text:bookmark text:name="_RefHeading_1418582_253892949"/>
<text:reference-mark-start text:name="DDE_LINK17"/>
<text:reference-mark-start text:name="line-2411"/>
<text:reference-mark-start text:name="line-2511"/>
<text:reference-mark-start text:name="line-261"/>
<text:reference-mark-start text:name="line-271"/>
<text:reference-mark-start text:name="attribute-table:protected_element-table:covered-table-cell"/><table:covered-table-cell> <text:bookmark-end text:name="_RefHeading_1418582_253892949"/>
<text:reference-mark-end text:name="attribute-table:protected_element-table:covered-table-cell"/>
<text:reference-mark-end text:name="line-271"/>
<text:reference-mark-end text:name="line-261"/>
<text:reference-mark-end text:name="line-2511"/>
<text:reference-mark-end text:name="line-2411"/>
<text:reference-mark-end text:name="DDE_LINK17"/>
</text:h>