Converting a Document from XML to HTML
XML-to-HTML Procedures:
- Make an XML document using the DocBook
document-type-definition (DTD).
- XML::
Where to Begin? - original
- XML::
Where to Begin? - HTML
Appearance of the above XML document (the original,
without HTML mark-up) depends on your browser:
- Microsoft Internet Explorer 5: Displays
as a tree with expand (+) and collapse (-)
points... (maybe, sometimes it don’t work
for me). View raw XML mark-up with
View/Source menu choice.
- Lynx: Use the back-slash key (\) to view
raw mark-up.
- Other: Use View/Source to view
raw mark-up.
- Make a DSSSL specification that works with James
Clarks’s jade.
Here’s one that mimics the HTML mark-up used at Lenin
Internet Archives (below are three files modified from Norman
Walsh's style-sheet):
- Process XML document to create HTML using jade:
jade
-V nochunks -t sgml
-d /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook_whre2beg.dsl
/usr/lib/sgml/declaration/xml.decl
wher2beg.xml >wher2beg.html
- Output:
-
Where to Begin?
- absolute links (CSS will work, except for glossary
links).
-
Where to Begin?
- relative links (CSS will not work from here).
- NOTE: one with relative lines is for the real
Archives. Lynx will display document after "Bad partial
reference!" message, while other browsers may display
nothing.
- Notes: