On 6/17/07, Rene Rivera <[EMAIL PROTECTED]> wrote: > John Maddock wrote: > > I've had a quick look at why the XHTML documents aren't validating: the > > remaining issues all relate to the use of xmlns inside elements that don't > > support it. > > That's the only issue because it's using the XHTML Transitional doctype. > But we should really be using the XHTML Strict doctype. That will likely > show many more issues.
Yay! What a fight... I am seriously injured but we (seems) to be able to generate XHTML 1.1 (that it is better than strict XHTML). I have just committed the changes under sandbox/doc_test/box_wrapper. If you have firefox, download the "Total Validator" add on. It is very useful. Summary of the fight: (1) The only thing that was bothering us in Transitional was the xmlns attributes. They were introduced by xsltproc because our stylesheet were defining tags in the unnamed namespace "". It was fixed by adding the correct xhtml namespace in the principal "stylesheet" tag. .... When I switch to XHTML 1.1 (very strict) all sort of problems start to pop up. I think I have solve all of them but I may have missed some. Some problems were on our side and some on docbook side. We can send woes to docbook guys. .... (2) <div class="section" lang="en" xml:lang="en"> [docbook problem] I solve it by overwriting the template that puts the lang attributte with an empty template. It is now generated as: <div class="section"> (3) <a xmlns="" href="http://www.boost.org" target="_top"> [our problem] Strict XHTML have a modular system that includes support for frames, but if you want to stick to the main doc type you have to stop using them. It seems that frames are getting silenty deprecated because they cause a lot of troubles. I solve it by directly removing the target attribute. (4) <ol type="1"> <ol type="i"> <ol type="a"> [docbook problem] type is deprecated, you have to use css properties. I solve it by overwriting the orderedlist template. (5) <ul type="disc"> [our problem] There was a param to tell docbook not to insert the "type" attribute. (6) <img xmlns="" src="../images/callouts/1.png" alt="1" border="0" /> [our problem] border is not longer supported. Remove it and add the correct logic to the css (7) <td width="5%" valign="top" align="left"> [docbook problem] width is not supported. This was being used inside callouts list. I have overwrite them. (8) <hr width="100" align="left" /> [docbook problem] Again width is deprecated. I have to overwrite the footnotes template to fixed it. Ok... that is all... Good nigth :) Best regards Matias ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Boost-docs mailing list [email protected] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
