Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #254: Pass structure/@xml:lang to result doc #255

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Apr 21, 2023

This PR fixes #254.

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.

@bobstayton: This should be easy to review, it's just one line. 馃槈


If we want to go the extra mile, we could use the xml:lang attribute from <assembly>, if there is none on <structure>. Should we take that into account? If yes, the line should look like this:

<xsl:copy-of select="@xml:id|(@xml:lang|/d:assembly/@xml:lang)[last()]"/>

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.
@tomschr
Copy link
Member Author

tomschr commented Jun 20, 2023

@bobstayton Do you need anything else for this PR? I would appreciate if we could merge that. Thanks! 馃檪

@bobstayton bobstayton merged commit efd6265 into docbook:master Jun 30, 2023
@tomschr tomschr deleted the bug254-assemble.xsl branch June 30, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assembly: Language is not taken into account on a <structure> element
2 participants