"Eric S. Raymond" <[EMAIL PROTECTED]> 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 ;)

-- 
[EMAIL PROTECTED] (work) / [EMAIL PROTECTED] (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)

Reply via email to