W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > May 1997

Re: Whitespace

From: Michael Sperberg-McQueen <U35395@UICVM.UIC.EDU>
Date: Mon, 12 May 97 12:11:18 CDT
Message-Id: <199705121714.NAA03779@www10.w3.org>
To: W3C SGML Working Group <w3c-sgml-wg@w3.org>
On Sun, 11 May 1997 13:31:41 -0400 Bert Bos said:
> >  2. Default attributes
>The previous XML-lang draft had a handy macro <?xml default...?> that
>I find very useful, expecially in dealing with XML-link, where a lot
>of elements have fixed attributes.
>Without it, a document like this
>    <!doctype foo "foo">
>    <foo/>
>with this DTD
>    <!element foo any>
>    <!attlist foo att (def) def>
>is not valid (for some definition of "valid"), since the DTD says that
>the "att" attribute cannot be #implied. Note that it could be omitted
>if this was SGML-1986, but in XML it cannot.

Why not?

I don't see anything in the spec that says a document is invalid
if it allows attributes to take their default values.

If you see something that does say so, where is it, please?


C. M. Sperberg-McQueen
Received on Monday, 12 May 1997 13:14:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:26 UTC