我很想知道,能否将变数的内容(可能包含有幻觉的html)列入一个数据部分。
I am using XQuery with eXist and I just can t seem to get it working.
I tried
<![CDATA[ $data ]]>
<![CDATA[ {$data} ]]>
在这两种情况下,变量不以内容取代,而是分别保持数据和{数据}。
I also tried using concat and other string functions, but these resulted in <![CDATA[
becoming <![CDATA[
.
元数据包括:从一位htmlwysiwyg编辑获取/张贴数据。
xquery version "1.0";
declare namespace request="http://exist-db.org/xquery/request";
let $data := request:get-parameter("content" , "")
return <![CDATA[ {$data} ]]>
Does anyone now how it should be done? Thanks in advance.