Hi Matt:
Thanks for the thought. I’ve tried these:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd”>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml11/xhtml11-strict.dtd”>
The one from ERPDFExamples uses simply this:
<!DOCTYPE html>
<html lang = "en”>
Tomorrow I’m going to run the example and test to see if it is broken as well.
Unfortunately you have to disable bundless builds to run it - which will muck
with my workspace a bit.
T
On May 7, 2014, at 8:34 PM, Matt Ness <[email protected]> wrote:
> Hi Tim,
>
> Perhaps you need to specify a DTD?
>
> http://www.w3.org/QA/Tips/Doctype
> http://www.w3.org/QA/2002/04/valid-dtd-list.html
>
>
> Regards,
>
> Matt
> --
> http://logicsquad.net
>
>
>
> On 08/05/2014, at 12:33 PM, Timothy Worman <[email protected]> wrote:
>
>> All:
>>
>> I have a problem that recently popped up with PDF generation. I have a
>> custom component that utilizes the simple FlyingSaucerImpl in
>> ERPDFGeneration. My component was failing with:
>>
>> "[org.xml.sax.SAXParseException] The markup in the document preceding the
>> root element must be well-formed."
>>
>> So, I simplified things and basically made a test component content sth like
>> SimplePDFGeneration1 from the ERPDFExamples. Same issue - SAXParseException.
>> I overrode appendToResponse to generate some diagnostics on the content I’m
>> trying pdf-ify (is that allowed?). Below is what it sayeth. So, what the
>> heck is in line 0, column 2 in the document?
>>
>> May 07 19:20:21 eTimesheet[55555] WARN NSLog -
>> 'edu.ucla.gseis.employee.components.TimesheetCalendarPDFComponent' caused a
>> SAXParseException
>> Message: 'The markup in the document preceding the root element must be
>> well-formed.'
>> Line : 0
>> Column : 2
>> --- content begin ---
>> 1 <!DOCTYPE html>
>> 2 <html _componentName =
>> "edu.ucla.gseis.employee.components.TimesheetCalendarPDFComponent" lang =
>> "en">
>> 3 <head>
>> 4 <meta charset = "utf-8" />
>> 5 <title>ERPDFGeneration Examples</title>
>> 6
>> 7 <link rel="stylesheet" type="text/css"
>> href="/cgi-bin/WebObjects/eTimesheet.woa/_wr_/wodata=/Users/worman/Source/etswo/eTimesheet/WebServerResources/print.css"
>> media="print"/>
>> 8
>> 9 </head>
>> 10 <body>
>> 11
>> 12 </body>
>> 13 </html>
>> --- content end —
>>
>> Tim
>> UCLA GSE&IS
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/matt%40logicsquad.net
>>
>> This email sent to [email protected]
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]