[MarkLogic Dev General] Passing Character Entities to Output
Betty Harvey
harvey at eccnet.com
Tue Feb 21 16:41:13 PST 2012
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 big world</data></cell>
The output I am getting is:
<cell><data>hello
big
world</data></cell>
I have tried several variations of:
let $newline := " "
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. |
harvey at eccnet.com | Washington,DC XML Users Grp
URL: http://www.eccnet.com | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
More information about the General
mailing list