[MarkLogic Dev General] question about newline character

Lee, David dlee at epocrates.com
Mon Nov 8 13:49:11 PST 2010


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


More information about the General mailing list