#1124 Compacting files freezes

output: ePub
closed-works-for-me
XSL (1066)
5
2010-09-16
2010-09-14
Jan Tosovsky
No

When the attached document (freezing.xml) is processed via the dbtoepub script, that script freezes. There are html files in the temporary folder, but not images. When the uncommented version was generated recently, everything was Ok. I've also found that removing the commented code surprisingly helps (ok.xml). Btw, it takes ages also when that commented file is displayed in the Visual Mode in Oxygen XML editor. So I suspect comments...
XSLT 1.76.0, Win7/64bit

Discussion

  • Jan Tosovsky
    Jan Tosovsky
    2010-09-14

    Test case

     
    Attachments
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-16

    • labels: 1168228 --> XSL
     
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-16

    You're right that it does take quite a while for the Ruby program to find the required images (it doesn't efficiently skip comments), but I am not able to reproduce the freeze, as my laptop creates the EPUB after 120 seconds or so.

    You may want to try the Python docbook2epub tool, which may offer better performance.

     
  • Jan Tosovsky
    Jan Tosovsky
    2010-09-16

    I thought that file would be produced after some time, but 10 minutes without any visible progress on my quite powerful PC seemed to me quite unacceptable. Btw, the file sent was reduced a lot because of attachment size restrictions. This issue is rather cosmetic, if it is complicated to improve processing files with huge comments, we can leave it as it is. Maybe with small notice in the section 'known issue' in release notes ;-)

     
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-16

    I agree that the quality of the tool is not high. That is why the README includes at the top:

    """
    An alpha-quality reference implementation (dbtoepub) for a DocBook to .epub
    converter (written in Ruby) is available under bin/.
    """

     
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-16

    • status: open --> closed-works-for-me