Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Valid non-alphabetical tag characters [Thread Next] Re: Valid non-alphabetical tag charactersTo: NULL Date: 12/4/2005 5:30:00 PM
Kalevet wrote:
> The problem is that I couldn't find any suitable non-alphabetical character
> other that underscore that I can use at the beginning of the tag, and
> underscore is definitively a valid value character (the indexed text is only
> letter, numbers, '_' and '@'). What I'm looking for are a few characters that
> are not letters, and can be used in a tag. The characters can be in Unicode.
The definition for XML 1.0 is here:
<http://www.w3.org/TR/REC-xml/#sec-starttags>
<http://www.w3.org/TR/REC-xml/#NT-Name>
where the grammar says:
Name ::= (Letter | '_' | ':') (NameChar)*
so a name has to start with what the specification defines as a letter
or with '_' or with ':' where colon ':' is allowed by the XML 1.0
specification but not helpful if you want to use XML with namespaces.
Letter is defined here:
<http://www.w3.org/TR/REC-xml/#NT-Letter>
So it does not have to be a letter from the Latin alphabet a..z, but it
has to be a character in one of the Unicode code ranges defined there as
letter.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
