This is the mail archive of the
mailing list .
Re: valid xhtml and chunking
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: valid xhtml and chunking
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Sun, 17 Jun 2001 13:55:56 -0400
- References: <email@example.com>
/ Colin Paul Adams <firstname.lastname@example.org> was heard to say:
| Firstly, I needed to be able to specify the xml output method, and the
| public and system doctype keywords. The html/chunker.xsl file did not
| seem very conducive to this (I resorted to editing the file), as I
| could not find an appropriate parameter to specify in the stylesheet
| driver (have I missed something?).
You can't specify parameters on xsl:output (they aren't AVTs) so you
have to do it yourself:
| Against the Transitional DTD, the only problem I found was that the
| validator complains about missing the alt attribute from img tags. I
Then you haven't provided it in your source documents.
| have come up against this problem myself when writing stylesheets, and
| got round it by coding alt=" " on every img tag.
| Lastly, using saxon, the xml declaration gets written to stdout for
| the document as a whole, and so does not end up in index.xhtml. The
| chunks all get a xml declaration.
Hmm. I know a declaration gets written to stdout, but I didn't think
it was the index.xhtml declaration (that's a chunk like any other).
| I notice that the presence of an xml declaration screws up
| presentation of the pages in opera 5 (and probably in other browsers
| that also claim to support xhtml - huh!). So a parameter to specify
| whether or not to omit the xml declaration would also be useful.
Again, can't be done. But you can do it in your customization layer.
| Norman, if after pointing out anything I have missed, then if you
| like, I will provide the neccesary code to allow generation of fully
| validating xhtml code.
If only it was that easy. This is the really troubling problem:
This is legal DocBook but not legal HTML and I don't know of any easy
way to deal with it (for table, substitute any (and every) element
that generates a "block" HTML tag).
Be seeing you,
Norman Walsh <email@example.com> | On the other hand, you have
http://www.oasis-open.org/docbook/ | different fingers.
Chair, DocBook Technical Committee |