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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion fails on dup stylenames #1

Open
peppobon opened this issue May 31, 2017 · 2 comments
Open

conversion fails on dup stylenames #1

peppobon opened this issue May 31, 2017 · 2 comments
Assignees

Comments

@peppobon
Copy link

When the src idml has dup style names (eg a para style and a char style)
idml2xml/xsl/modes/GenerateHubformat.xsl
fails with the following error at line 792:
A sequence of more than one item is not allowed as the value of variable $lang-by-style (@xml:lang, @xml:lang)

@gimsieke
Copy link
Contributor

IIRC we took some measures to make css:rule names unique. If they aren’t effective here (or if it turns out we didn’t), we should consider doing so now. Or consider using other criteria such as: In this function idml2xml:text-lang(), we know that we are in paragraph context anyway.
We should probably also question why idml2xml:text-lang() seems to take account paragraph styling only. What if a paragraph contains character ranges with a different language?

polypunkt added a commit that referenced this issue May 31, 2017
@polypunkt
Copy link
Contributor

I fixed the conversion failure by only choosing para styles for the language determination. But as Gerrit already mentioned: we should consider improving the whole function and also handle the contained character style ranges.

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

No branches or pull requests

3 participants