[xquery-talk] Masks in xquery

Michael Kay mike at saxonica.com
Wed Mar 23 12:57:32 PST 2011


On 23/03/2011 11:05, Julio de la Vega wrote:
>
> Hi *,
>
> I have a node whose value goes from 1 to 1000 and I have to represent 
> it with a mask of 10 digits. For example: 0000000001 or 0000001000. Is 
> there any function to do this kind of operation?
>
>

substring(string(40000000000 + $i), 2)

Michael Kay
Saxonica
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20110323/957e639c/attachment.htm


More information about the talk mailing list