Incorrect output for xsl:number with alphanumeric characters in the format 
attribute
------------------------------------------------------------------------------------

         Key: XALANC-605
         URL: http://issues.apache.org/jira/browse/XALANC-605
     Project: XalanC
        Type: Bug
  Components: XalanC  
    Versions: CurrentCVS    
 Environment: all
    Reporter: Dmitry Hayes
     Fix For: CurrentCVS


Stylesheet : <xsl:template match="/">
  <out>
    <xsl:number value="123" format="***"/>
        
  </out>
</xsl:template>

According to : 
"The format attribute is split into a sequence of tokens where each token is a 
maximal sequence of alphanumeric characters or a maximal sequence of 
non-alphanumeric characters....  If the first token is a non-alphanumeric 
token, then the constructed string will start with that token; if the last 
token is non-alphanumeric token, then the constructed string will end with that 
token.... If there are no format tokens, then a format token of 1 is used to 
format all numbers" 

we should see in the output :
<?xml version="1.0" encoding="UTF-8"?><out>***123***</out>, 
but XalanC produces:
<?xml version="1.0" encoding="UTF-8"?><out>***123</out>


 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to