You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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?
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.
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)
The text was updated successfully, but these errors were encountered: