Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Valid non-alphabetical tag characters

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent