This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: sgml vs xml


On Wed, Mar 12, 2003 at 07:41:30AM -0500, Norman Walsh wrote:
> | I was unaware you could use DSSSL with XML.  Is the converse true - can
> | you use XSL with SGML?
> 
> There's no technical reason why you couldn't. XSL is a tree-to-tree
> transformation language and SGML documents are certainly trees. But I
> don't know of any XSLT processor that has a general-purpose SGML
> parser on the front end. I think xsltproc has some heuristics for
> accepting (some?) DocBook SGML documents.

  Hum, no don't use that, it's really broken. It may work for some
really simple document but will break for anything non-trivial. You
need a real SGML parser to handle SGML. It's better to convert the
SGML documents to XML with an SGML tool and then process that XML.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat dot com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]