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>:
> I think I'm willing to live without else. If I want else, I think the
> right answer is a special-purpose XML vocabulary:
>   <chapter>
>     <prof:choose>
>       <prof:when condition=3D"html">
>         <title>HTML Title</title>
>       </prof:when>
>       <prof:when condition=3D"print">
>         <title>Print Title</title>
>       </prof:when>
>       <prof:otherwise>
>         <title>Print and HTML Title</title>
>       </prof:otherwise>
>     </prof:choose>
>     ....
> Where the profiling application always removes all prof: elements.

Now tell me how this differs, other than in surface syntax, from what I've
already done?

Yes, I could have dressed up my conditionals this way.  Still could with=20
some trivial changes to my flex program.  I thought it would be more
honest to make them PIs.
		<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