RE: xml2html using dsssl

Subject: RE: xml2html using dsssl
From: "Harbarth, Juliane" <jhb@xxxxxxxxxxxxxx>
Date: Thu, 20 May 1999 11:37:10 +0200
Title: RE: xml2html using dsssl

From: rtl@xxxxxxxxxxxxxxxxxxxxxx [mailto:rtl@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, May 20, 1999 11:08 AM
To: dssslist@xxxxxxxxxxxxxxxx
Subject: xml2html using dsssl

> I need to generate some HTML using files in XML.
> How can I do this?
> I've tried to use:
> (element book
>       (make element HTML
>               (make element HEAD
>                       (make element BODY
>                               (process-children)
> ...          


Hi Rita,

'element' is something that neeeds to be declared as follows :
(declare-flow-object-class element
  "UNREGISTERED::James Clark//Flow Object Class::element")
Your second line is then supposed to be
        (make element gi: "HTML"
For details on James Clark's flow-object-classes see
http://www.jclark.com/jade/transform.htm

Since HTML documents do not contain the BODY element
within the HEAD element you better write :
                 (make sequence
                        (make element
                         gi: "HEAD"
                                ...)
                        (make element
                         gi: "BODY"
                                ...)

'sequence' is a SOSOFO, read about SOSOFOs in Paul
Prescod's marvellous tutorial :at
http://itrc.uwaterloo.ca/~papresco/dsssl/tutorial.html

Juliane

Current Thread