Skip to content

Commit

Permalink
Add support for task labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovirt committed Oct 21, 2024
1 parent ae4fee0 commit 2fa4185
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/generator/com/elovirta/pdf/shell.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
<axsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/task-elements-attr.xsl"/>
<axsl:import href="{$plugin_name}cfg/fo/attrs/task-elements-attr.xsl"/>
<axsl:import href="plugin:org.dita.pdf2:xsl/fo/task-elements.xsl"/>
<axsl:import href="{$plugin_name}xsl/fo/task-elements.xsl"/>

<axsl:import href="plugin:org.dita.pdf2:cfg/fo/attrs/reference-elements-attr.xsl"/>
<axsl:import href="plugin:org.dita.pdf2:xsl/fo/reference-elements.xsl"/>
Expand Down
3 changes: 3 additions & 0 deletions src/generator/com/elovirta/pdf/task-elements.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<xsl:template match=".[. instance of map(*)]">
<axsl:stylesheet version="2.0">
<xsl:call-template name="generate-namespace-node"/>
<xsl:if test="$root ?style-task-labels">
<axsl:param name="GENERATE-TASK-LABELS" select="'YES'"/>
</xsl:if>
</axsl:stylesheet>
</xsl:template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void execute() throws BuildException {
generate(xdmItem, "static-content.xsl", "xsl/fo/static-content.xsl", null);
// generate(xdmItem, "task-elements.xsl", "xsl/fo/task-elements.xsl", null);
generate(xdmItem, "topic.xsl", "xsl/fo/topic.xsl", null);
generate(xdmItem, "task-elements.xsl", "xsl/fo/task-elements.xsl", null);
generate(xdmItem, "layout-masters.xsl", "cfg/fo/layout-masters.xsl", null);
generate(xdmItem, "front-matter.xsl", "cfg/fo/attrs/front-matter-attr.xsl", ATTR);
generate(xdmItem, "commons.xsl", "cfg/fo/attrs/commons-attr.xsl", ATTR);
Expand Down

0 comments on commit 2fa4185

Please sign in to comment.