Skip to content

Commit

Permalink
Fixing a bug in tool for generating text and xrefs from schema
Browse files Browse the repository at this point in the history
When generating text from the manifest schema for Part 2, the XSLT has been generating incorrect xref names for dsig schema elements. These have been manually corrected in the master change-tracked version of Part 2 and the bug in the XSLT has been fixed.

Note that the XSLT can currently only process one schema per document. Changes to the dsig schema for ODF 1.4 have therefore been added manually to Part 2.
  • Loading branch information
franciscave committed Apr 19, 2024
1 parent 91e9cce commit 39d07d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/test/resources/odf1.4/tools/create-embedded-xref.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@
<xsl:with-param name="fp" select="$fp"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="preceding::text:h[@text:outline-level='3'][1]='manifest:version'">
<xsl:when test="@text:outline-level and not(number(@text:outline-level) lt 4) and preceding::text:h[@text:outline-level='3'][1]='manifest:version'">
<xsl:variable name="attr-name" select="'manifest:version'"/>
<xsl:call-template name="create-element-ref-mark-start">
<xsl:with-param name="tag" select="$tag"/>
Expand Down

0 comments on commit 39d07d8

Please sign in to comment.