You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Thomas Conradi <co...@prostep.de> on 2000/08/22 09:45:07 UTC
Spaces in attribute-enumeration?
Hello,
is it possible to declare an attribute of type enumeration which
contains spaces in its possible values?
Something like:
<!ELEMENT elem EMPTY>
<!ATTLIST elem attr1 (a | b | c | d | e ) #IMPLIED >
but instead of 'a' 'a house' ...
Bye, Thomas
--
___________________________________________________________________________
ProSTEP GmbH Phone: +49-6151-9287381
Thomas Conradi Fax: +49-6151-9287381
Dolivostr. 11 Email: conradi@prostep.de
D-64293 Darmstadt
___________________________________________________________________________
Re: Spaces in attribute-enumeration?
Posted by Thomas Conradi <co...@prostep.de>.
Thank you for your help!
Thomas
Eric Ye wrote:
> Unfortunately this is impossible with DTD, cause the Enumeration type is a
> list of NMtokens:
>
> Nmtoken ::= (NameChar)+
>
> NameChar doesn't include white spaces.
>
> However, I believe Schema allows you to do this.
>
> Eric Ye
> IBM JTC-Silicon Valley
>
> ----- Original Message -----
> From: "Thomas Conradi" <co...@prostep.de>
> To: <xe...@xml.apache.org>
> Sent: Tuesday, August 22, 2000 12:45 AM
> Subject: Spaces in attribute-enumeration?
>
> > Hello,
> >
> > is it possible to declare an attribute of type enumeration which
> > contains spaces in its possible values?
> > Something like:
> > <!ELEMENT elem EMPTY>
> > <!ATTLIST elem attr1 (a | b | c | d | e ) #IMPLIED >
> >
> > but instead of 'a' 'a house' ...
> >
> > Bye, Thomas
> >
> >
> > --
> >
> ___________________________________________________________________________
> >
> > ProSTEP GmbH Phone: +49-6151-9287381
> > Thomas Conradi Fax: +49-6151-9287381
> > Dolivostr. 11 Email: conradi@prostep.de
> > D-64293 Darmstadt
> >
> ___________________________________________________________________________
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
--
___________________________________________________________________________
ProSTEP GmbH Phone: +49-6151-9287381
Thomas Conradi Fax: +49-6151-9287381
Dolivostr. 11 Email: conradi@prostep.de
D-64293 Darmstadt
___________________________________________________________________________
Re: Spaces in attribute-enumeration?
Posted by Eric Ye <er...@locus.apache.org>.
Unfortunately this is impossible with DTD, cause the Enumeration type is a
list of NMtokens:
Nmtoken ::= (NameChar)+
NameChar doesn't include white spaces.
However, I believe Schema allows you to do this.
Eric Ye
IBM JTC-Silicon Valley
----- Original Message -----
From: "Thomas Conradi" <co...@prostep.de>
To: <xe...@xml.apache.org>
Sent: Tuesday, August 22, 2000 12:45 AM
Subject: Spaces in attribute-enumeration?
> Hello,
>
> is it possible to declare an attribute of type enumeration which
> contains spaces in its possible values?
> Something like:
> <!ELEMENT elem EMPTY>
> <!ATTLIST elem attr1 (a | b | c | d | e ) #IMPLIED >
>
> but instead of 'a' 'a house' ...
>
> Bye, Thomas
>
>
> --
>
___________________________________________________________________________
>
> ProSTEP GmbH Phone: +49-6151-9287381
> Thomas Conradi Fax: +49-6151-9287381
> Dolivostr. 11 Email: conradi@prostep.de
> D-64293 Darmstadt
>
___________________________________________________________________________
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>