You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2005/04/21 22:28:27 UTC

[jira] Closed: (XALANC-445) generate-id() inserts periods into name which limits usage

     [ http://issues.apache.org/jira/browse/XALANC-445?page=all ]
     
David Bertoni closed XALANC-445:
--------------------------------


> generate-id() inserts periods into name which limits usage
> ----------------------------------------------------------
>
>          Key: XALANC-445
>          URL: http://issues.apache.org/jira/browse/XALANC-445
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: 1.6
>     Reporter: William D. seurer
>     Assignee: David Bertoni
>      Fix For: CurrentCVS

>
> "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://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org