[MarkLogic Dev General] question about newline character

helen chen hchen at aip.org
Mon Nov 8 14:07:42 PST 2010


Hi David and Danny,

It works for me. I opened the file in windows, seems ok to me. But I'm not using windows anyway.

Thanks, Helen


On Nov 8, 2010, at 4:49 PM, Lee, David wrote:

> And hope it doesnt end up as CR/NL if you edited the file on a windows
> system.
> 
> 
> -----Original Message-----
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of Danny
> Sokolsky
> Sent: Monday, November 08, 2010 4:20 PM
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] question about newline character
> 
> Or you can always just put a newline in the string for the second arg of
> string-join:
> 
> fn:string-join(("hello", "there"), "
> ")
> 
> =>
> 
> hello
> there
> 
> -Danny
> 
> -----Original Message-----
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of Lee, David
> Sent: Monday, November 08, 2010 12:52 PM
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] question about newline character
> 
> Use character entity encoding    
> &x0a;
> 
> example:
> 
> "foo
bar"
> 
> 
> I find this page extremely useful to translate any unicode char/string
> into various representations.
> 
> http://rishida.net/tools/conversion/
> 
> 
> -----Original Message-----
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of helen chen
> Sent: Monday, November 08, 2010 3:48 PM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] question about newline character
> 
> Hi there,
> 
> In Marklogic xquery, if I have a sequence of string, and I want to join
> this sequence with new line character, like using fn:string-join(), how
> do I specify the new line character?
> 
> Thanks, Helen
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general



More information about the General mailing list