Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

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

Open
glassfishrobot opened this issue Apr 12, 2004 · 4 comments
Open

Comments

@glassfishrobot
Copy link

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
Copy link
Author

Reported by sekhar

@glassfishrobot
Copy link
Author

Was assigned to sekhar

@glassfishrobot
Copy link
Author

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

@glassfishrobot
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant