HTML to DocBook translation

Subject: HTML to DocBook translation
From: Christian Leutloff <leutloff@xxxxxxxxxxxxxxxxx>
Date: 04 Feb 1998 20:56:29 +0100
Mbox-line: From Wed Feb 4 20:56:30 1998

I want to translate some HTML documents into the DocBook format. I've
started with the following dsl:

<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(declare-flow-object-class element
  "UNREGISTERED::James Clark//Flow Object Class::element")

(define (copy-attributes #!optional (nd (current-node)))
  (let loop ((atts (named-node-list-names (attributes nd))))
    (if (null? atts)
        (let* ((name (car atts))
               (value (attribute-string name nd)))
          (if value
              (cons (list name value)
                    (loop (cdr atts)))
              (loop (cdr atts)))))))

  (let* ((old-gi (gi (current-node)))
	  (case old-gi
	    (("H1") "sect2")
	    (("H2") "sect3")
	    (("H3") "sect4")
	    (("H4") "sect5")
	    (("LI") "item")
	    (("UL") "itemizedlist")
	    (("I")  "emphasize")
	    (("TT") "command")
	    (("P") "para")
	    (else old-gi))))
    (make element
	  gi: new-gi
	  attributes: (copy-attributes))))

But how can I translate the <a>-tag?

It is a label and a reference:

<a name="label">labelpos</a>


<a href="label">see labelpos</a>

Any ideas?

Has someone a working (it must not be perfect) solution?


Where can I found I very *short* and easy introduction into DSSSL?

Is there a short reference for the DocBook DTD on 2 (or so) pages

Thanks in advance

Christian Leutloff, Aachen, Germany         leutloff@xxxxxxxxxxxxxxxxx         leutloff@xxxxxxxxxx      

            Debian GNU/Linux -

Attachment: pgp00000.pgp
Description: PGP signature

Current Thread
  • HTML to DocBook translation
    • Christian Leutloff - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id PAA12945Wed, 4 Feb 1998 15:01:20 -0500 (EST) <=
      • Thomas G. Lockhart - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id VAA15068Wed, 4 Feb 1998 21:33:51 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id IAA24857Thu, 5 Feb 1998 08:15:22 -0500 (EST)
      • Alexander Taranov - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id IAA25195Thu, 5 Feb 1998 08:37:52 -0500 (EST)
      • <Possible follow-ups>
      • Marcus Carr - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id RAA28842Thu, 5 Feb 1998 17:14:28 -0500 (EST)