[
https://issues.apache.org/jira/browse/ODFTOOLKIT-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146150#comment-13146150
]
Devin Han commented on ODFTOOLKIT-294:
--------------------------------------
Hi Svante,
Just a friendly reminder.
Follow Apache policy, as you are the committer, you can push the patch
directly. Other guys can review you patch after push.
Devin
> 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: Devin Han
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira