Subject: Re: Building a new tree From: Chris Maden <crism@xxxxxxxxxxx> Date: Mon, 19 Apr 1999 16:46:15 -0400 (EDT) |
[Chris Lilley] > OK. So, to be clear, it is legal to declare an attribute to be of > type ID even though the external DTD subset may declare it to be > something else? (Or may also declare it to be ID) My reading of the spec is that the first declaration of an attribute on an element type (i.e., the one in the internal subset in your example) takes precedence, and that of the attribute declarations that are effective for an element type, no more than one may be of type ID. That means, AFAICT, that you could have this in your external subset: <!ATTLIST foo bar ID #IMPLIED baz CDATA #IMPLIED> and this in your internal subset: <!ATTLIST foo bar CDATA #IMPLIED baz ID #IMPLIED> and it could be a valid document. [...] > right [...] > which is wrong [...] > which is also wrong. Exactly. -Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Building a new tree, Chris Lilley | Thread | Re: Building a new tree, Chris Lilley |
Call for Participation, Markup Tech, B. Tommie Usdin | Date | Re: Grand Unification Theory, Chris Lilley |
Month |