New issue 126 by cactusco...@yahoo.com: xlst parsing fails :White spaces
are required between publicId and systemId
http://code.google.com/p/ocropus/issues/detail?id=126
OS=Fedora 7
OCRopus= revision 1307
1) Run 'ocroscript recognize' on some suitable png file, catch the output.
2) Try converting document created from step 1 into plain text via an xlst
transform (Java 1.5).
Rather than creating the expected document, the system throws an exception
when the DOCTYPE declaration is processed.
The problem is the PUBLIC identifier value and the subsequent dtd are
treated as a single value (note the double quotes):
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
This is easily fixed:
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 126 by tmbdev: xlst parsing fails :White spaces are
required between publicId and systemId
http://code.google.com/p/ocropus/issues/detail?id=126
(No comment was entered for this change.)
Comment #2 on issue 126 by christian.kofler: xlst parsing fails :White
I've attached a patch that does just that.
Attachments:
fix_ocropus_doctype.diff 587 bytes
Comment #4 on issue 126 by tmb...@gmail.com: xlst parsing fails :White
spaces are required between publicId and systemId
http://code.google.com/p/ocropus/issues/detail?id=126
(No comment was entered for this change.)
--