Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tomas-Kraus opened this issue Apr 12, 2004 · 6 comments
Closed

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

Tomas-Kraus opened this issue Apr 12, 2004 · 6 comments
Labels
enhancement New feature or request javatoxsd component Major Priority
Milestone

Comments

@Tomas-Kraus
Copy link
Contributor

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]

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
Reported by sekhar

@Tomas-Kraus
Copy link
Contributor Author

@glassfishrobot Commented
Was assigned to sekhar

@Tomas-Kraus
Copy link
Contributor Author

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

@Tomas-Kraus
Copy link
Contributor Author

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

@Tomas-Kraus Tomas-Kraus added this to the milestone 1 milestone Sep 13, 2018
@Tomas-Kraus
Copy link
Contributor Author

@lukasj
Copy link
Contributor

lukasj commented Apr 2, 2020

I believe this was done

@lukasj lukasj closed this as completed Apr 2, 2020
@lukasj lukasj added enhancement New feature or request and removed Type: New Feature labels May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javatoxsd component Major Priority
Projects
None yet
Development

No branches or pull requests

3 participants