javaee / jaxb-spec

Formerly jsr222.java.net
Other
9 stars 16 forks source link

Java to XML Identifier mapping algorithm needs to be defined #11

Open glassfishrobot opened 20 years ago

glassfishrobot commented 20 years ago

The following issue was raised by Scott Ziegler

There are a host of characters that are legal in a java identifier that are not legal as xml names. I think JAXB will need a java -> xml name mapping algorithm. Here's a little program to print them (requires xerces):

import org.apache.xerces.util.XMLChar;

public class NameTest { public static void main(String[] args) { for (char c = 0; c < Character.MAX_VALUE; c++) { if (Character.isJavaIdentifierPart(c)) { if (!XMLChar.isName(c))

{ System.out.println("CHAR:\t" + (int)c); }

} } } }

Environment

Operating System: All Platform: All

Affected Versions

[2.0 draft]

glassfishrobot commented 20 years ago

Reported by sekhar

glassfishrobot commented 20 years ago

sekhar said: Updating the status to follow the lifecycle issue outlined in the jaxb20-note-0007.txt.

glassfishrobot commented 20 years ago

Was assigned to sekhar

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JSR222-11