Menu

Can't compile a template with external DTD

Help
2010-01-11
2013-04-16
  • Emily Jenness

    Emily Jenness - 2010-01-11

    I have a template for my Hamlet that uses an external DTD and I cannot seem to get it to compile.  If I have this:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    prior to my <html> tag then I always seem to get a compile error.  I've tried a <REPLACE> and an <INCLUDE> with no success.

    Any suggestions?  My template does not render properly without the <!DOCTYPE html PUBLIC …, etc. statement.

     
  • Rene Pawlitzek

    Rene Pawlitzek - 2010-01-15

    This problem has been found and will be fixed in the next release. The next release will also preserve the comments in a template. The new code will be released after extensive testing.
    Rene

     
  • Rene Pawlitzek

    Rene Pawlitzek - 2010-01-28

    Hamlets v1.6 has been released:

    The Hamlets framework version 1.6 (hamlet-1.6.jar) makes use of the LexicalHandler in SAX. This handler provides methods that can receive notification of several lexical events. Thus, the new version of the framework is able to preserve the <!DOCTYPE> declaration and the comments in a template. Note that conditional comments for MS Internet Explorer (IE) are also preserved. For example:

    <!->
    Special instructions for IE 6 here
    <!->

     

Log in to post a comment.

MongoDB Logo MongoDB