Project

Profile

Help

string literals and line ending normalization

Added by Anonymous almost 20 years ago

Legacy ID: #2911729 Legacy Poster: marcvc (marcvc)

Michael, Saxon 8.2, consider the following query: string-length(" ") This evaluates to 2 (at least on a Windows platform). Does Saxon perform line ending normalization on string literals? Shouldn't it? Thanks, Marc


Replies (1)

RE: string literals and line ending normaliza - Added by Anonymous almost 20 years ago

Legacy ID: #2912282 Legacy Poster: Michael Kay (mhkay)

The October XQuery draft does indeed specify that line endings within string literals should be normalized. Saxon hasn't implemented this yet. This is partly because I think the spec is wrong: I think that (as with XML) line endings should be normalized wherever they appear. This is still an open issue in the WG, and I think it's probably best to hold off changing the software until the matter is resolved. Michael Kay

    (1-1/1)

    Please register to reply