OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Number of name characters?

[ Lists Home | Date Index | Thread Index ]

I saw a list of painstakingly typed out Name characters awhile back, .
Xerces' org.apache.xerces.util.XMLChar.isName() method source uses ranges
and masks, so individual name characters are a little harder to count there.

Prowler-0.4.1a has an XMLCharacterClass that uses character table subsets;
get the code and take a look at the isNameChar() method. Sum the members of
the character tables indirectly referred to there:

    public static boolean isNameChar(char c){
        return isLetter(c) || isDigit(c) || isCombiningChar(c) ||
isExtender(c)
            || (c == '.') || (c == '-') || (c == '_') || (c == ':');
    }

I'd do it myself, but no telling if I'd get the same answer you would.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS