[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Re: Fw: Re: XHTML Stylesheets
/ "Lars Trieloff" <lars@trieloff.net> was heard to say: | Hi, >> | My question is if would not be the best to create seperate xhtml >> | stylesheets >> >> No. I said that, didn't I? Ok, I've changed my mind. Yes. But, they are automatically generated from the HTML stylesheets, no human intervention allowed. This strategy is now employed in the CVS version of the stylesheets. This overcomes the otherwise unsurmountable problem of how to get the proper namespace name on all of the elements in the HTML file. | For creating valid XHTML 1.0 Strict/XHTML 1.1 we will have to | - change the doctype Done. | - remove all presentation elements such as | + font There was only one, it's been changed to <span class="ERROR"> | + basefont Not used. | - remove all presentation attributes such as | + <body bgcolor="... | + <body text="... | + link, vlink, alink Done. The XHTML stylesheets override the body.attributes named template to make it empty. | + width, height e.g in tables, images Uhm, well, this is harder. But if you don't put them in your source document, you won't get them in the output. | + anchors need to be <a id="..." instead of <a name=" Tricky, but I think it's fixed. | + img must have an alt attribute, even if it is empty (omitting is not | allowed) Mumble. I think I'd be happier if authors always provided alt text. | + one thing that was already mentioned, the proper nesting of elements: | there are no div elemtents allowed inside p elements (validator.w3.org says: | "Error: element "div" not allowed here; possible cause is an inline element | containing a block-level element"), | so we have to replace nearly all p elements by div elements, one exception | would be the simpara-->p transformation, which seems to be ok. | this are the first things that have come into mind, so this list has to be | filled. This needs work, but I haven't done the work yet. | enjoy your sunday. Thanks. Ok, so it was four or five Sundays ago, but this is a hectic time of year :-) Be seeing you, norm P.S. Happy New Year to you all! -- Norman Walsh <ndw@nwalsh.com> | Whatever you may be sure of, be http://www.oasis-open.org/docbook/ | sure of this: that you are Chair, DocBook Technical Committee | dreadfully like other | people.--James Russell Lowell
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC