This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: DocBook-XML and conditional sections
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: DocBook-XML and conditional sections
- From: "David L. Hintz" <dlh at MetaphaseTech dot com>
- Date: Tue, 28 Sep 1999 10:04:58 -0500
- References: <Stephane Bortzmeyer's message of "Tue, 28 Sep 1999 08:49:31 +0200"><199909280649.IAA05789@ezili.sis.pasteur.fr>
- Reply-To: docbook at lists dot oasis-open dot org
At 07:05 AM 9/28/1999 -0400, you wrote:
>The biggest problem with using attributes is that the "ignored"
>parts are seen by the parser, so you can't (easily) duplicate
>required structures like title. Instead you have to do yucky
>things like:
>
> <title><phrase arch="X86">Frobbing your X86 Processor</phrase>
> <phrase arch="PPC">Frobbing your PowerPC Processor</phrase>
> </title>
We do this sort of thing all the time, but in our system (which, by the
way, isn't DocBook) it's coded as:
<title>Frobbing your %cpuversion; Processor</title>
which isn't at all yucky. We do this with single-source, multiple versions
of a book, each having its own private text entity set. We find it to be a
_very_ effective use of SGML.
Dave
===================================================================
David L. Hintz Metaphase Technology Division
Senior Software Engineer Structural Dynamics Research Corp.
Technical Communications Group 4233 N. Lexington Ave., Suite 3290
Phone: 651/482-4156 Arden Hills, MN 55126-6198
Fax: 651/482-4001 mailto:DLH@MetaphaseTech.com
===================================================================