daisy / pipeline-scripts

!! NOTE: This project is now part of the pipeline-modules project !! | Script modules for the default DAISY Pipeline 2 distribution.
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Moveout-imggroup.xsl produce non xml result #107

Open YLBrailleNet opened 7 years ago

YLBrailleNet commented 7 years ago

Version Number : 1.10.2 Platform : Debian Linux

When converting book with <imggroup> tag from dtbook to zedai, pipeline raise error :

step p:xslt named moveout-imggroup at bundle://131.0:1/xml/dtbook2005-3-to-zedai.xpl:72:p:xslt returned non-XML result

And the process is aborted.

Note: change txt extension to xml before use. Sample.txt

bertfrees commented 7 years ago

@marisademeglio Seems that you are the author of the script. Any idea what could be the problem?

marisademeglio commented 7 years ago

Not off the top of my head (but it's been 4+ years...). What output is it producing instead?

YLBrailleNet commented 7 years ago

From what i've obtained by running that xsl alone, it seemas to put outside of the root tag. So the result is nolonger a valide xml.

YLBrailleNet commented 7 years ago

I have some more information, the script bugs whenever the "imggroup" tag is contained in the tag "doctitle" or "docauthor" of "frontmatter", however, if "imggroup" is contained in "level1", the script works fine. As it's not a common case that "doctitle" or "docauthor" contains "imggroup", the bug may be considered as "not urgent" finally.