Menu

#30 highlighting crashes (stack overflow) for long text blocks

closed-fixed
nobody
None
2
2005-08-15
2005-08-10
No

The highlight feature of thml.html.xsl uses recursion
to find words, and it dies from a stack overflow when a
passage is too long. If there is an XSLT extension that
tokenizes, that might be a way to avoid these crashes.

Discussion

  • Harry Plantinga

    Harry Plantinga - 2005-08-11

    Logged In: YES
    user_id=1078930

    We tried the tokenize extension to XSLT, but it crashed (ran
    out of RAM?)

    One possible workaround is to make sure that no text block
    is too long -- break them up with <span> elements, perhaps,
    during the book installation phase.

     
  • Harry Plantinga

    Harry Plantinga - 2005-08-11
    • priority: 3 --> 2
    • summary: XSLT extension for tokenization --> highlighting crashes (stack overflow) for long text blocks
     
  • Matt Johnson

    Matt Johnson - 2005-08-15

    Logged In: YES
    user_id=1177364

    Instead of highlighting from the xslt, javascript is now
    used to do the highlighting.

     
  • Matt Johnson

    Matt Johnson - 2005-08-15
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.