Seems the html5 tag <!doctype html> needs to be all in capitals. According to this link, it should allow it in lowercase as well.
Forum › Bugs
<!doctype html> gives error: StartTag: invalid element name, needs <!DOCTYPE html>
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
How are you calling Prince, and what is the file extension? Could it be parsing the file as XML?
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>®</sup> for the registered symbol. I had to change it to <sup>®</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
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>®</sup> for the registered symbol. I had to change it to <sup>®</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
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?
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"/>
<!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"/>
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.
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.
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.
I will email you the document, but on Linux it doesn't give any error either if running it from the command line.