Hi David, I take your suggestion and I understand what you say. It also makes the code easy to read.
Thanks, Helen >>> "Lee, David" <[email protected]> 11/08/10 5:28 PM >>> I'd still encourage you to use the character entity format. My experience with many languages and development processes and teams leads me to conclude you will eventually have problems with embedded non-encoded line-breaks and other non-ascii values. It tends to "work for me" today then a year later days are spent wondering why a previously working program suddenly fails mysteriously. ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected] 812-482-5224 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of helen chen Sent: Monday, November 08, 2010 5:08 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] question about newline character 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: [email protected] > [mailto:[email protected]] 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: [email protected] > [mailto:[email protected]] 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: [email protected] > [mailto:[email protected]] 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 > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
