Yes, this is covered by XML Schema, via usage of a derived 'string' data
type with a 'pattern' constraint placed upon it.

DTD's are weak to the point that their usage is nearly pointless in a real
application; this is why I am so eager for XML Schema support! :)

- kaoruAngel


----- Original Message -----
From: "Dean Roddey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 1:40 PM
Subject: RE: DTD help!


> You'll just have to enforce that in your own code. Perhaps XML Schema
would
> address this, though I'm not sure, and its not fully official yet so you'd
> be taking your chances to base any system that needs to be out in the
field
> any time soon on it.
>
> --------------
> Dean Roddey
> Software Geek Extraordinaire
> Portal, Inc
> [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: Rajesh Kommineni [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 10:05 AM
> To: [EMAIL PROTECTED]
> Subject: OT: DTD help!
>
>
> Hello everyone,
> This is a DTD question. I tried to search on the list but couldnt find any
> information. I have a DTD definition of an element like this:
>
> <!ELEMENT Session(#PCDATA)>
>   <!ATTLIST Session id ID #REQUIRED>
>
> When I looked at the spec, it says the attribute value of id should always
a
>
> *valid* xml name. So, I should always start with a letter. This, in my
case
> (as a matter of fact, many cases where usually IDs are numeric), doesnt
> work, since Session IDs are always numeric.
>
> keeping in the mind that i have to make sure all my session elements have
to
>
> different, is there any way to get around this?
>
> Thanks
> rajesh
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to