Is there a way, in a DTD, to specify a "pattern" for a given attribute.
Example: I want to have an attribute called "position" which is a string of the form "X,Y".
I would like to have something in my DTD similar to:
<!ATTLIST MyElement
myattribute "*,*"
>
(I know, for this example two attributes X and Y would certainly be better, but that's just to highlight what I want to do)
Thanks
You can't specify a pattern using DTD. You could do it using a schema though:
The
value
inxs:pattern
is a regular expression.