Re: Direct rendering with CSS

Norm Tovey-Walsh <[email protected]> Mon, 24 Oct 2022 17:01:24 +0100
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
> I haven't been paying attention recently: is anyone working on
> rendering the original DocBook XML with CSS in the browser, and thus
> bypassing the conversion stage altogether?

Not that I’m aware of. For a lot of DocBook, it would be pretty easy. A
lot of DocBook markup turns into divs and spans with class attributes
when you run it through XSLT.

CALS tables would probably be impossible, but you could use HTML tables
instead.

You’d have to place elements (for example: title, subtitle, author,
etc.) in the right order because CSS can’t reorder them. Any rendering
that required reordering (footnotes, epigraph attributeions, some
synopsis elements, some mediaobjects) wouldn’t work. I don’t think you
could make a multi-page version because counters would reset on each
document (so every chapter would be chapter “1”), though maybe you could
fix that with some clever CSS.

I dunno. Maybe you could get pretty far.

                                        Be seeing you,
                                          norm

--
Norman Tovey-Walsh <[email protected]>
https://nwalsh.com/

> No man's knowledge here can go beyond his experience.--John Locke
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAmNWuQMACgkQhVWfHhJM
AHmqYRAAnDOfCbKQKfbY2qd4GwsbhMDClGWDf9Tf+9A+4sbsAkqP9Rf2m2jLTvnv
nfJOorSfCOTEXkzuqSlA8TnVsNNHz15QnEyd2pFV3Mm2qDURhdd65gi/l3RNaUBB
38nFoAaOU4djJTFsT046hi/ZleP6KzYd4VOiAmlJM9MzSyM+GO9ZvplkmmuTDUjW
mygDsdYuYxYCas8iWjQtDYPGiL3pjx3VwvVtvfOlvQWOwQB+IcBVydy0s5dUFVXf
u901PalRW6WjjXzp9MGtp1F3QOdfP5hOFvsdgCBaOJIXjrANEwdTa9/jxb6Ypoys
h/nfCgUeJZ5Y3H6j0aVwyoZ0E9rwONEAwQ8DHu/M+z+1igb1OykX99dmJwkzIbd3
LJ8iS2EOMN94i8Y3agaaTMwOx5SC/OXi3XZfnxsfNFOoRlCX/x5FJz8OKFVzBvx+
waQNAFcrd6oDRykTDQJcIRoXFcd2AKZxZ/jOwfyDL/BHFpWvf+bBfe5BFy0oP565
zdE/Eg74ShJFNXjY0XeEmqr0S3yC2WnsDlLl/UXarq72WxNkjUDLyhGuJm9Np7oK
k2VPFLlZFi7KTdZSfvvgoQSxZ8ge3ZmYNwkusQwQ8BRkS9LcLh71+CMm1xqV1CAZ
sQTpciacgp6rgeqqKrpL8L8Rq87jinCZaKhPkQSiJ+TVeYe0sbU=
=7a5x
-----END PGP SIGNATURE-----