OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: Re: conditionalization of XML

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Norman Walsh <ndw@nwalsh.com>:
> What I don't understand off the top of my head Eric, is why you
> abandoned the XML approach when you abandoned XSLT.

Well...I could cite the 'else' problem you mention below, but the truth is
that when it became apparent that XSLT wouldn't cut it, I dusted off sgmlpre
because that seemed like the quickest way to get a working tool.  Took me
less than a day.
> Why not process:
> <doc>
> <title>Preamble</title>
> <!-- this is the test on the manual page -->
> <para>Always issue this text.
> <phrase condition=3D"html">Issue this text if 'condition=3Dhtml' is given=
 on the
> command line.</phrase>
> <phrase condition=3D"pdf|ps">Issue this text if 'condition=3Dpdf' or 'con=
> is given on the command line.</phrase>
> <phrase condition=3D"somethingelse">Otherwise issue this text.</phrase>
> </para>
> <para>Always issue this text.</para>
> </doc>

I've thought about this, actually.  Not so hard to implement with flex.
> It's harder to write the "else" cases in this style, but I think a
> little creativity in the syntax of the condition attributes might
> alleviate some of those problems.

Propose a syntax?  All the ones I thought up were too ugly to live.  If
you can come up with anything better I might implement it.
		<a href=3D"http://www.tuxedo.org/~esr/";>Eric S. Raymond</a>

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC