[ http://nagoya.apache.org/jira/browse/XALANC-445?page=comments#action_56973 ] Joe Kesselman commented on XALANC-445: --------------------------------------
Suggested trivial patch: Replace '.' with 'x'. > generate-id() inserts periods into name which limits usage > ---------------------------------------------------------- > > Key: XALANC-445 > URL: http://nagoya.apache.org/jira/browse/XALANC-445 > Project: XalanC > Type: Bug > Components: XalanC > Versions: 1.6 > Reporter: William D. seurer > > "The generate-id function returns a string that uniquely identifies the node > in the argument node-set that is first in document order. The unique > identifier must consist of ASCII alphanumeric characters and must start with > an alphabetic character. Thus, the string is syntactically an XML name." > (from http://www.w3.org/TR/xslt#function-generate-id) > I have someone arguing with me that Xalan doesn't do this right because it > returns names like this "Nxxxxxxxx.yyyyyyyy" (where the x's and y's are hex > digits). The period in the middle is the sticking point. He says this is > not an ASCII alphanumeric character. For what he is doing with the names > (something with JavaScript) periods are not legal characters and he is stuck. > Unforunately there is no single clear definition of "ASCII alphanumeric > character" that I can find. Some of the definitions include all ASCII > characters in "alphanumeric" while others include only letters and numbers. > XML names are clearly defined and they can include periods (among several > other non-letter/non-number characters). > It can be argued that everything is working fine but it would probably be > better if some other character than a period was used in the middle there. > This specifically is for Xalan 1.6 but the code (in the getSuffix function of > FunctionGenerateID) is the same in Xalan 1.9 as well and probably other > versions. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
