What am I missing in my jsp to get tidy to skip messing with things,
or to get it to understand namesapces for xhtml: Should I make the content type of the response xml instead of the standard jsp html contenttype? this is what the start of the output looks like: <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:exf="http://www.exforms.org/exf/1-0" xmlns:delcyon="http://www.delcyon.com"> > and this is the tidy logging i'm getting: Tidy (vers Sep 26, 2004) Parsing "InputStream" line 14 column 2 - Error: <xhtml:html> is not recognized! line 14 column 2 - Warning: missing <!DOCTYPE> declaration line 14 column 2 - Warning: discarding unexpected <xhtml:html> line 31 column 6 - Warning: plain text isn't allowed in <head> elements line 31 column 6 - Warning: inserting missing 'title' element line 31 column 7 - Error: <xhtml:head> is not recognized! line 31 column 7 - Warning: discarding unexpected <xhtml:head> line 32 column 10 - Error: xhtml:meta is not recognized! line 32 column 10 - Warning: discarding unexpected xhtml:meta line 33 column 10 - Error: <xhtml:title> is not recognized! line 33 column 10 - Warning: discarding unexpected <xhtml:title> line 33 column 45 - Warning: discarding unexpected </xhtml:title> line 34 column 10 - Error: xhtml:link is not recognized! line 34 column 10 - Warning: discarding unexpected xhtml:link line 35 column 10 - Error: xhtml:link is not recognized! line 35 column 10 - Warning: discarding unexpected xhtml:link InputStream: Document content looks like HTML 3.2 221 warnings, 127 errors were found! This document has errors that must be fixed before using HTML Tidy to generate a tidied up version. -- 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 |
Administrator
|
Yes, the best is to make the response type application/xml, and make sure that what you generate is indeed well-formed XML. Alex |
Free forum by Nabble | Edit this page |