User talk:Saoshyant/Archives/2007/July

XHTML and RDF
Saoshyant, I]m surprised to hear the XHTML did not validate with the RDF. Perhaps you did not declare the RDF namespace in the document. Once that’s declared it should be completely valid XML/XHTML/RDF. Also if you change the filename extension to .xhtml instead of .html, Konquorer should do the right thing with the RDF. That’s the way to process it as MIME type application/xhtml+xml when using a local file. As I said before, you should be able to use CSS to make sure the RDF is not displayed. --Cplot 15:27, 31 October 2006 (UTC)


 * I looked at your file and it renders fine in Safari with a recent nightly build of the WebKit rendering engine. In the shipping version of WebKit, Safari indicates errors for all of your character entity references. My view is that those should be avoided with XML since unicode support will be better with XML processors than character entity reference support. But like I said, the recent builds of WebKit fixes this.


 * I think your code doesn’t validate because of a problem with the validator. I don’t see anything invalid in that code. I tried moving the rdf namespace declarations to the html element (just curious) and it still didn’t improve validation. BTW, the id attribute on the style element was technically invalid, in HTML 4.01, so I think there the validaor’s making a mistake. The errors related to the rdf and other namespaces are also problems with the validator however.


 * The problem you spoke about with Konquroer was reminiscent of problems I've seen with WebKit (which is based on KHTML) only when rednering as text/html. That"s why it sounded to me like KHTML is not processing the file as XML. I could be something else, but you might want to double check that somehow. I know with Safari it will move unrecognized elements out of the head and into the body unless the file is process as xml. Good luck with this. I like to see people finally pushing the envelope on XHTML. I tsounds to me like you]re not too concerned about IE support. If you are you could try serving as application/xml with the IE XSLT trick so IE will handle the XHTML properly. --Cplot 17:37, 31 October 2006 (UTC)


 * Correction, I looked and it seems that the id attribute has been inadvertantly removed from the XHTML 1.1 DTD (it is in the XHTML 1.0 DTD). Again, I imagine those are errors in the DTD specification and that they didn’t intend to put it in there and take it back out again. --Cplot 18:06, 31 October 2006 (UTC)


 * There is nothing wrong with the validator or the DTD. The document doesn’t validate because it isn’t valid. If you want it to validate, then you’ll have to write your own DTD which includes elements from the XHTML and RDF namespaces. It is a little pointless though, because even if the document validates, it still won’t be conformant.


 * Also, Konqueror treats XHTML as HTML when served with the correct XHTML MIME type. 82.40.253.242 11:35, 7 July 2007 (UTC)