Re: New work-queue item: Conditional inclusion

On Thu, 5 Jun 1997, Gavin Nicol wrote:

> >Conditional display seems as easy as 
> >
> >(element FRAMESET (empty-sosofo))
> 
> Precisely, I doesn't need to be, nor should be, in the language 
> specification (beyond what SGML current offers). 

Yup. Sometimes clumsiness in syntax can be a correct disincentive:-)

Moreover, conditional inclusion shouldn't be confused with dynamic scoping
or control of "content" (the difference between #ifdef and if (...).) For
markup, we're basically talking about an equivalent of querying, whether
this be preprocessing by the server or postprocessing by the client.

Finally, the basic problem with using MSs to kludge this is that SGML's
default of INCLUDE for status specification is in the way (otherwise the
common {something=>true,nothing=>false} type of fail-soft behavior could
be built in.) Nevertheless, I'll throw yet another syntax suggestion into
the pot:

  <![ %cond1; [ ...
  ]][ %cond2; [ ...
  ...
  ]]>

(i.e. MSC-DSO closes a MS and opens another one. Wouldn't quite work on
the older systems though.) 


Arjun
  

 

Received on Thursday, 5 June 1997 15:39:25 UTC