I asked this question on the XQuery list and it looks like this can't be
done in straight XQuery.  I am asking this question here just in case
there is a MarkLogic function that can be  used.

I need to pass a linefeed character to the output.  I am creating Excel
spreadsheets where I need a list on separate lines in a single cell. 
Excel recognizes the character entity 
 for linefeeds.

My output needs to look like this:

<cell><data>hello&#10;big&#10;world</data></cell>

The output I am getting is:

<cell><data>hello
big
world</data></cell>

I have tried several variations of:

let $newline := "&#10;"
let $newline := fn:concat("&", "#10;")

etc. All having the same results, getting a linefeed instead of placing
the actual character entity in the output.

Are there any MarkLogic tricks to passing a character entity through
without serializing it?

TIA!

Betty



/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
[email protected]                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to