[MarkLogic Dev General] string-join output not as expected

sini narayanan sini.isonline at gmail.com
Wed May 15 22:18:35 PDT 2013


Hi Tim,

I get the output as <SYMB>T</SYMB> test

Is it not possible to get it as <SYMB>T</SYMB> test ?

I'm inserting this values in an xml file.

Thanks,
Sini


On Thu, May 16, 2013 at 10:21 AM, Tim <tim at aaom.net> wrote:

> First of all your symbol needs to be a string and not a node.  Secondly
> you need to use the correct syntax for string-join:**
>
> * *
>
> *let $phonesymbol* := "<SYMB>T</SYMB>"
> *return **fn:string-join*((*$phonesymbol*, "test"), " ")
>
> ****
>
> Tim  Meagher****
>
> ** **
>
> *From:* general-bounces at developer.marklogic.com [mailto:
> general-bounces at developer.marklogic.com] *On Behalf Of *sini narayanan
> *Sent:* Thursday, May 16, 2013 12:43 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] string-join output not as expected****
>
> ** **
>
> Hi,****
>
> ** **
>
> I have the following code****
>
> ** **
>
> let $phonesymbol       := <SYMB>T</SYMB>****
>
> return****
>
> $phonesymbol****
>
> ** **
>
> output : <SYMB>T</SYMB>****
>
> ** **
>
> let $phonesymbol       := <SYMB>T</SYMB>****
>
> return****
>
> fn:string-join($phonesymbol || " " || "test")****
>
> ** **
>
> output : T test****
>
> ** **
>
> How do I modify this to get the output as "<SYMB>T</SYMB> text"****
>
> ** **
>
> Thanks,****
>
> Sini****
>
> _______________________________________________
> 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/20130516/30c6e183/attachment.html 


More information about the General mailing list