[ 
https://issues.apache.org/jira/browse/JENA-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-103.
--------------------------------

    Resolution: Won't Fix
      Assignee: Andy Seaborne

This is a historical accident but there is various places in code that use 
stringForNode(Node) for displayable strings.


> FmtUtils does not expand xsd prefix
> -----------------------------------
>
>                 Key: JENA-103
>                 URL: https://issues.apache.org/jira/browse/JENA-103
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>         Environment: *
>            Reporter: Laurent Pellegrino
>            Assignee: Andy Seaborne
>            Priority: Minor
>              Labels: FmtUtils, arq
>
> A call to FmtUtils#stringForNode(literalNode) with literalNode equals to 
> Node.createLiteral("9", null, XSDDatatype.XSDint) returns "9"^^xsd:int 
> whereas "9"^^http://www.w3.org/2001/XMLSchema#int is expected.
> I have set the issue as minor because it is currently possible to solve the 
> issue by using the new OutputLangUtils class which returns the right value. 
> However this imply to write several lines to get the output as a String:
>     StringWriter sw = new StringWriter();
>     OutputLangUtils.output(sw, object, null);
>     new String(sw.getBuffer());
> Maybe, a solution would be to rewrite FmtUtils by using OutputLangUtils? 
> Thus, FmtUtils will be useful to format Nodes as String and only 
> OutputLangUtils has to be maintained.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to