You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Matthew L. Avizinis" <ml...@gleim.com> on 2001/07/19 01:46:31 UTC

Schema attributes

Does Xerces's implementation of the Schema CR allow for any way to define an
element attribute without any associated value, e.g. in a way similar to <td
nowrap> in html?

thanks much,

  Matthew L. Avizinis
Gleim Publications, Inc.
   4201 NW 95th Blvd.
 Gainesville, FL 32606
(352)-375-0772 ext. 101
     www.gleim.com


RE: Schema attributes

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
Of course...I didn't see that.  Now I understand why it was written as
<!ATTLIST td
      nowrap       (nowrap)                 #IMPLIED
      bgcolor      %Color;                  #IMPLIED
      width        %Pixels;                 #IMPLIED
      height       %Pixels;                 #IMPLIED
>
in the XHTML DTD.
It all now makes perfect sense.
Thanks much,
Matthew L. Avizinis <ma...@gleim.com>


| -----Original Message-----
| From: Ian Roberts [mailto:irr@decisionsoft.com]
| Sent: Thursday, July 19, 2001 4:34 AM
| To: xerces-j-user@xml.apache.org
| Subject: Re: Schema attributes
|
|
| On Wed, 18 Jul 2001, Matthew L. Avizinis wrote:
|
| > Does Xerces's implementation of the Schema CR allow for any way
| to define an
| > element attribute without any associated value, e.g. in a way
| similar to <td
| > nowrap> in html?
|
| No.  It's not due to the Schema spec - <td nowrap> is not well formed XML,
| since, in XML, attributes have to have a value.  The XHTML way of
| expressing this construct is <td nowrap="nowrap">, which is well-formed.
|
| Ian
|
| --
| Ian Roberts, Software Engineer        DecisionSoft Ltd.
| Telephone: +44-1865-203192            http://www.decisionsoft.com
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
| For additional commands, e-mail: xerces-j-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Schema attributes

Posted by Ian Roberts <ir...@decisionsoft.com>.
On Wed, 18 Jul 2001, Matthew L. Avizinis wrote:

> Does Xerces's implementation of the Schema CR allow for any way to define an
> element attribute without any associated value, e.g. in a way similar to <td
> nowrap> in html?

No.  It's not due to the Schema spec - <td nowrap> is not well formed XML,
since, in XML, attributes have to have a value.  The XHTML way of
expressing this construct is <td nowrap="nowrap">, which is well-formed.

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org