W3C home > Mailing lists > Public > www-international@w3.org > January to March 2001

Re: Natural language multiword value in attribute enumeration/Whitesp ace in Nmtoken

From: Martin Duerst <duerst@w3.org>
Date: Mon, 12 Feb 2001 12:03:28 +0900
Message-Id: <4.2.0.58.J.20010212120053.03f8bef0@sh.w3.mag.keio.ac.jp>
To: "Lieske, Christian" <christian.lieske@sap.com>, "'www-international@w3.org'" <www-international@w3.org>
NMtoken doesn't include spaces. Please have a look at
XML Schema, there you can define an enumeration of strings
that should do the job.

But I'm not sure it's a good idea to use attributes
(instead of elements) for something that is so close
to natural language, and I'm not sure it's a good idea
to have a list like this fixed in the DTD/Schema. But
I don't know enough context to clearly advise against it.

Regards,  Martin.

At 18:33 01/02/09 +0100, Lieske, Christian wrote:
>Hello www-international,
>
>Background/apologies
>--------------------------------
>
>My question ultimately is rooted in language, and thus
>I figured it might be acceptable to send it to the
>internationalization list; from my understanding several
>people working on language-related DTDs currently
>have identical questions/have to live with workarounds
>like underscores instead of whitespace. I apologize
>if this is not the right forum (would be happy if someone
>could point me to the appropriate one.
>Question
>-------------
>
>I am trying to do sth. like
>
><!ATTLIST myElement
>         myAttribute (come over | come across) #IMPLIED>
>
>So far did not succeed. Amongst others I tried
>
>a) ( "come over" | "come across" )
>b) ( &apos;come over&apos; | &apos;come across&apos; )
>c) ( come&#32;across | come&#32over )
>
>The error message I get from e.g. IE5 is
>
>Invalid character found in ATTLIST enumeration. Line 13, Position 39
>
><!ATTLIST fooo  associatedWord  (come across | come over)  #IMPLIED >
>-----------------------------------------------------------^
>
>What I am technically trying to do (my understanding) is to
>have a multiword Nmtoken/whitespace within a Nmtoken. Is this simply
>impossible? If not: What's the trick?
>
>Thanks in advance, Christian
>
>
>
>
Received on Monday, 12 February 2001 03:59:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:56 GMT