Issue 126 in ocropus: xlst parsing fails :White spaces are required between publicId and systemId

42 views
Skip to first unread message

codesite...@google.com

unread,
Jan 13, 2009, 3:25:29 PM1/13/09
to ocropus...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

codesite...@google.com

unread,
Mar 1, 2009, 3:22:52 AM3/1/09
to ocropus...@googlegroups.com
Updates:
Status: Accepted
Owner: faisalshafait

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.)

codesite...@google.com

unread,
Mar 11, 2009, 6:38:45 AM3/11/09
to ocropus...@googlegroups.com
Updates:
Owner: christian.kofler
Labels: Component-core

Comment #2 on issue 126 by christian.kofler: xlst parsing fails :White

codesite...@google.com

unread,
Apr 1, 2009, 5:17:28 PM4/1/09
to ocropus...@googlegroups.com

Comment #3 on issue 126 by jonathanbrinley: xlst parsing fails :White
spaces are required between publicId and systemId
http://code.google.com/p/ocropus/issues/detail?id=126

I've attached a patch that does just that.

Attachments:
fix_ocropus_doctype.diff 587 bytes

codesite...@google.com

unread,
Jun 14, 2009, 9:36:20 AM6/14/09
to ocropus...@googlegroups.com
Updates:
Labels: FixPatch

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.)

--

Reply all
Reply to author
Forward
0 new messages