List Info

Thread: Newbie: specify a namespace




Newbie: specify a namespace
user name
2006-02-02 17:21:28
Hi,
I'm writing some xml schemas to define datatypes and I have
to define a
data type who can contain only the characters used to write
a
namespace. The data type is a subset of the string type and
the
character must follow the w3c spec.
I would like to use a regular expression in the xml schema
to describe
the possible characters in the namespace string.

These are the specs:

NameStartChar is
":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6]
| [#xD8-#xF6] | [#xF8-#x2FF] |
[#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] |
[#x2070-#x218F] |
[#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] |
[#xFDF0-#xFFFD] |
[#x10000-#xEFFFF]

NameChar is
NameStartChar | "-" | "." | [0-9] | #xB7
| [#x0300-#x036F] |
[#x203F-#x2040]

avoiding the unicode characters:

NameStartChar is
":" | [A-Z] | "_" | [a-z]

NameChar is
NameStartChar | "-" | "." | [0-9]

after many failures, I'm still at the beginnig...
could you please help me ?

Thanks in advance

Monica

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )