transpect / idml2xml

Library to convert IDML to Hub XML or to extract tagging from an IDML file
BSD 2-Clause "Simplified" License
21 stars 4 forks source link

dropped content in idml2xml:XML-Hubformat-extract-frames mode #6

Closed peppobon closed 1 year ago

peppobon commented 2 years ago

Hello, when converting the attached idml the sidebar content get lost and only anchors are present:

The content is ok in output from previous step in idml2xml.HUB.07a.idml2xml_XML-Hubformat-properties2atts.xml

I think the problem is in mode idml2xml:XML-Hubformat-extract-frames templates in GenerateHubformat.xsl

Tested with latest 2beb2b8..b6ce1ad Attaches the idml test doc and the generated hub.

Thanks test.zip

peppobon commented 2 years ago

Forgot to mention that if you anchor the group to a para the conversion is ok.

gimsieke commented 2 years ago

If I restore the behavior before this fix, I think the lost content will be retained. Now checking how to reconcile this behavior with the duplicate-content issue that the previous fix was meant to address.

gimsieke commented 2 years ago

I hope that I was able to fix it while still avoiding the other issue that made me change the template in the first place. Please have a try.

peppobon commented 2 years ago

Sorry, but now I get the content twice. See the same file converted after your patch. test-after-patch.idml.hub.zip .

peppobon commented 2 years ago

the two inner sidebars hub/sidebar[1]/sidebar are repeated after hub/sidebar[1]. The right content should be hub/sidebar[1] only

gimsieke commented 2 years ago

hmm. Investigating…

gimsieke commented 2 years ago

I didn’t mean to mark it as resolved. It was just an attempt at resolving the issue. All tests of the other projects that use this library need to pass.

gimsieke commented 2 years ago

But you may already test whether this would work in your case, @peppobon.

peppobon commented 2 years ago

Yes! my tests now pass. Thanks Gerrit (as always).

gimsieke commented 2 years ago

To be honest, I didn’t exactly know what I was doing. We need to monitor this. It may also be that we will detect side effects with other projects. Due to intermittent issues with Github’s svn bridge, we cannot test some of our projects yet.