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

Riyafa Abdul Hameed commented on VXQUERY-189:
---------------------------------------------

Thank you. That makes it very clear. As I understand by going through the 
specification for sequence normalization [1], vxquery currently seem to have 
not followed step3 correctly where it says: "For each subsequence of adjacent 
strings in S2, copy a single string to the new sequence equal to the values of 
the strings in the subsequence concatenated in order, each separated by a 
single space." 

This change has to be made as you have clearly explained.
I will try to go through the source code and try to understand it and make the 
necessary changes if that is possible.

[1] https://www.w3.org/TR/xslt-xquery-serialization/#serdm

> Separate values in a sequence using single space when serializing 
> ------------------------------------------------------------------
>
>                 Key: VXQUERY-189
>                 URL: https://issues.apache.org/jira/browse/VXQUERY-189
>             Project: VXQuery
>          Issue Type: Bug
>            Reporter: Riyafa Abdul Hameed
>
> Current implementation of the serializer uses a new line(\n) character to 
> separate the values in a sequence when printing them. In some cases it is 
> necessary to have a single whitespace between values. It is essential to find 
> out where the new line is introduced and to decide in which cases we want a 
> single-space and in which one a new line is preferable.
> For an example consider the function fn:tokenize():
> The expected result for fn:tokenize("The cat sat on the mat", "\s+") is:
> The cat sat on the mat
> But the result generated and printed on the console is:
> The
> cat
> sat
> on
> the
> mat
> which is incorrect.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to