You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Steven J. Hathaway (JIRA)" <xa...@xml.apache.org> on 2012/08/18 07:23:38 UTC

[jira] [Commented] (XALANC-605) Incorrect output for xsl:number with alphanumeric characters in the format attribute

    [ https://issues.apache.org/jira/browse/XALANC-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437249#comment-13437249 ] 

Steven J. Hathaway commented on XALANC-605:
-------------------------------------------

I will try to confirm the patch for use in version 1.11 release.
                
> Incorrect output for xsl:number with alphanumeric characters in the format attribute
> ------------------------------------------------------------------------------------
>
>                 Key: XALANC-605
>                 URL: https://issues.apache.org/jira/browse/XALANC-605
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: CurrentCVS
>         Environment: all
>            Reporter: Dmitry Hayes
>            Assignee: Dmitry Hayes
>             Fix For: CurrentCVS
>
>         Attachments: patch1.diff, patch.diff
>
>
> 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, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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