Forum Bugs

<!doctype html> gives error: StartTag: invalid element name, needs <!DOCTYPE html>

Jose2
Seems the html5 tag <!doctype html> needs to be all in capitals. According to this link, it should allow it in lowercase as well.
mikeday
This should not be a problem with the new HTML5 parser. Are you using Prince 9?
Jose2
Yes, just got 9, and that was what was happening. It didn't happen when calling prince directly from the command line in mac os X. This was under linux standard static link 64bits, version 9 r2
mikeday
How are you calling Prince, and what is the file extension? Could it be parsing the file as XML?
Jose2
This is how it is being called.

prince --prefix=/usr/local/http-docs/xxxx/bin/princexml --disallow-modify --log=/usr/local/http-docs/xxxx/html/en/prince/prince_D7Xta3.log /usr/local/http-docs/xxxx/html/en/prince/yyyy.html -o TEST.pdf

It could be parsing the file as XML. Not sure why or how to change that. Another error that I got was when using <sup>&reg;</sup> for the registered symbol. I had to change it to <sup>&#174;</sup> to avoid the error (error: Entity 'reg' not defined)

Whenever errors were generated, I also got these following two at the end:

error: could not load input file
error: no input documents to process




mikeday
It must be parsing it as XML based on the content of the file. But that seems inconsistent with the <!doctype html> at the beginning, so I'm a little confused. Can you paste the first few lines of the file, showing the <html> tag?
Jose2
Sure, see below:

<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>xxxxxxxx</title>
<meta name="author" content="yyyy"/>
<meta name="subject" content="zzzz"/>

The one above gives an error, the one below doesn't. Also, while testing, the utf-8 line didn't have the / at the end and that also caused another error.

<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>xxxxxxxx</title>
<meta name="author" content="yyyy"/>
<meta name="subject" content="zzzz"/>
mikeday
They look identical? :)

Can you email me (mikeday@yeslogic.com) a document that causes the error if you run Prince on it from the command-line? If I can reproduce the issue here, it should be easier to see what is going on.
Jose2
Ugh! Sorry :) was trying to do too many things at the same time. The second one should have had the first line showing like <!DOCTYPE html>

I will email you the document, but on Linux it doesn't give any error either if running it from the command line.