Skip to content

Commit efd6265

Browse files
tomschrbobstayton
authored andcommitted
Fix #254: Pass structure/@xml:lang to result doc
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.
1 parent fe16c90 commit efd6265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xsl/assembly/assemble.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<xsl:attribute name="version">
135135
<xsl:value-of select="$docbook.version"/>
136136
</xsl:attribute>
137-
<xsl:copy-of select="@xml:id"/>
137+
<xsl:copy-of select="@xml:id|@xml:lang"/>
138138

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

0 commit comments

Comments
 (0)