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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
<!->
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
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
<!->