David is correct, functx modules can be imported from 
/MarkLogic/functx/functx-1.0.doc-2007-01.xqy or 
/MarkLogic/functx/functx-1.0.nodoc-2007-01.xqy.

I think the function you are looking for is:

functx:pad-string-to-length(
    $stringToPad as xs:string? ,
    $padChar as xs:string ,
    $length as xs:integer )
as xs:string

Hope that works for you.

Keith L. Breinholt
[email protected]<mailto:[email protected]>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Lee, David
Sent: Thursday, May 13, 2010 9:53 AM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] how to create a padding string

functx, which I belive is built into marklogic has this, and if not the source 
is
http://www.xqueryfunctions.com/xq/functx_pad-string-to-length.html



From: [email protected] 
[mailto:[email protected]] On Behalf Of helen chen
Sent: Thursday, May 13, 2010 11:24 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] how to create a padding string

I want to create a string using one character with specific length, it is like 
padding.

In marklogic 0.9-ml, I can do  something like  fn:string-pad("0", 3),  it will 
give me "000"

How can I do it in marklogic 1.0-ml?

Thanks, Helen


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to