This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XSLT and DocBook 3.1 SGML?
- From: Ian Castle <ian dot castle at looksystems dot co dot uk>
- To: Ziemek Borowski <ziembor at faq-bot dot ziembor dot waw dot pl>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 18 Jan 2002 11:02:41 +0000
- Subject: Re: DOCBOOK-APPS: XSLT and DocBook 3.1 SGML?
- References: <20020117212609.GA7653@faq-bot.ziembor.waw.pl>
I would convert the documents to XML and leave them as XML.
XML can be handled by SGML tools with an appropriate declarations
file...
... Unless of course you are tied to some SGML tool that won't handle
XML... (might be time to change that tool)
All my new documents are XML documents, although I still process them
with openjade and DSSSL.
There are more XML tools than there are SGML tools available now, so
using DocBook XML is pretty much a win-win situation for me.
But in crude terms, XML is a subset of SGML, rather than the other way
round... So it is easier to get things that know about SGML to handle
XML rather than vice versa.
On Thu, 2002-01-17 at 21:26, Ziemek Borowski wrote:
> Stupid question:
> Is there any posibility to use XSLT stylesheets (actually
> db2latex) to DocBook 3.1 (SGML) source?
>
> Currently I convert it to XML using
>
> for i in *.sgml
> do sgml2xml -c /etc/sgml/catalog -E99999 \
> -xid \
> -xno-nl-in-tag \
> -xlower \
> -xempty \
> -xcdata -ihtml -ixml $i > new/`basename $i .sgml`.xml
> done
>
> and after that some search and replace on that files (like <imagedata
> fileref="_"> </imagedata> to <imagedata * /> -- when I not use option
> empty I get <imagedata fileref="_" /> </imagedata> ;-(.
>
>
> assumptions:
>
> * that docment is splitted to many files, and I want to save that split,
> so I cannot normalize all document and use that effect ;-(.
>
>
> --
> Ziemek Borowski ZMB-RIPE http://ziembor.waw.pl/zmb/
>