[xquery-talk] XQuery 3.0: formatting integers

Michael Kay mike at saxonica.com
Sun Mar 10 10:08:22 PST 2013

There has been quite a bit of tightening up of the format-integer 
specification over successive drafts. The Candidate Recommendation says 

If the primary format token contains at least one Unicode digit then it 
is taken as a decimal digit pattern, and in this case it must match the 
regular expression ^((\p{Nd}|#|[^\p{N}\p{L}])+?)$. If it contains a 
digit but does not match this pattern, a dynamic error is raised 

which makes it pretty clear that in your example, the picture is an 
error (because it contains a ".").

 >I assume that Michael Kay's Saxon processor is probably the 
implementation to trust most?

No, because the specification has been changed since Saxon 9.4 was released.

At this stage of the game, while the specification is still a draft, 
differences between implementations - especially in edge cases - are to 
be expected.

Michael Kay

More information about the talk mailing list