[
https://issues.apache.org/jira/browse/ODFTOOLKIT-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Svante Schubert resolved ODFTOOLKIT-294.
----------------------------------------
Resolution: Fixed
Assignee: Svante Schubert (was: Devin Han)
Fixed added the XSL file "getAttributeDefaults.xsl" to extract default values
from the ODF specification
> Adding the XSL stylesheet for extracting default values to XSLT_RUNNER XSL
> sample folder
> -----------------------------------------------------------------------------------------
>
> Key: ODFTOOLKIT-294
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-294
> Project: ODF Toolkit
> Issue Type: Improvement
> Components: xslt-runner
> Reporter: Svante Schubert
> Assignee: Svante Schubert
> Priority: Trivial
> Labels: patch
> Attachments: defaultValueExtraction.patch
>
>
> 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>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)