Skip to content

Commit

Permalink
Fix #254: Pass structure/@xml:lang to result doc
Browse files Browse the repository at this point in the history
Pass xml:lang attribute on <structure> (without @resourceref)
to the root element of the result document.

Without this fix, an author cannot set the language of
the result document.
  • Loading branch information
tomschr authored and bobstayton committed Jun 30, 2023
1 parent fe16c90 commit efd6265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsl/assembly/assemble.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<xsl:attribute name="version">
<xsl:value-of select="$docbook.version"/>
</xsl:attribute>
<xsl:copy-of select="@xml:id"/>
<xsl:copy-of select="@xml:id|@xml:lang"/>

<!-- get any merge resource element before changing context -->
<xsl:variable name="merge.resourceref" select="d:merge[1]/@resourceref"/>
Expand Down

0 comments on commit efd6265

Please sign in to comment.