[MarkLogic Dev General] question about newline character
Tim Meagher
tim at aaom.net
Mon Nov 8 13:53:52 PST 2010
Doesn't that mean that any tabs and or spaces inserted by an editor could be
left in the fray, especially if the lines of code are indented?
-----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 4:49 PM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] question about newline character
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20101108/f763b4da/attachment-0001.html
More information about the General
mailing list