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


"Eric S. Raymond" <esr@thyrsus.com> writes:

> I looked in my nutshell XML book.  It says, indeed, that conditional
> sections are not allowed in the internal subset.  I think I see a sort
> of painful sideways way to get this effect by conditional inclusion of
> entities, but -- bletch!  Barf!  It's ugly, ugly, ugly.

Usually, SGML conditionals are sufficient and <![ %html; [ ... ]]> does
not look ugly to me.  If they are not suffcient you are better off
writing separate documents or splitting the document into fragments for
flexible inclusion.

Use SGML as an input format and run "sgmlnorm | sgml2xml" on the SGML
file when you want to process the document with XML only tools for final
output.

> And involves modifying the document itself every time you want to
> change the conditionalization, which is unacceptable.

The entities are accessible from the command line; try:

    nsgmls -i html

This feature is documented.  Forthcoming openjade will allow you to set
"variables" (entities) from the command line.

Or go for Norms <prof:when> framework ;)

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)


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


Powered by eList eXpress LLC