Posted by
Erik Bruchez on
URL: https://discuss.orbeon.com/XHTML-output-and-PDF-tp3026751p3028036.html
Tambet,
> I'm happy with the result, but I noticed one thing in the process: even when
> oxf.epilogue.output-xhtml=true, the output is still HTML in IE and it will
> give error when generating PDF. I tracked the problem down into
> /config/epilogue-servlet.xsl in orbeon-resources-private.jar. There is a
> check, that XHTML output is produced only, when accept header sent by
> browser contains application/xhtml+xml. But IE sends accept header as */*,
> which should be acceptable also. My question is - why is this check there
> and can't it be just removed? I want to use vanilla Orbeon with no custom
> patches.
I am not sure but I assume it's because IE did not (does not until
version 9) support application/xhtml+xml:
http://www.w3.org/MarkUp/2004/xhtml-faq#ie> I did a little research before sending this e-mail and indeed when accept
> header is */*, then output should be text/html.
>
http://www.w3.org/TR/xhtml-media-types/#media-types>
> I would rather see, that when oxf.epilogue.output-xhtml=true and accept
> header is text/html or */*, then output is still XHTML, but formatted
> according to HTML compatibility guidelines (isn't it already?):
>
http://www.w3.org/TR/xhtml1/#guidelinesThat would be a possibility. Could you try this change and make sure
it works with IE and other browsers?
One requirement is that we don't want to trigger IE's quirks mode with
an improper DOCTYPE.
> Another question - I had to switch to Orbeon PE to generate PDF-s, because
> otherwise xxforms:noscript mode was not available. But I noticed, that
> read-only forms and PDF generation are working in Orbeon Form Runner even in
> CE version. AFAIK you are using the same XHTMLRenderer. We probably need PE
> anyway because of other features, but I'm just curious - could it be
> possible to make our PDF generation solution work also with Orbeon CE?
You could probably post-process the output of the form in non-Noscript
mode with XSLT.
-Erik
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws