Hi,

there's no html serialization mode in Sedna and there's no way to
serialize different tags using different serialization modes.

there is a couple of way to get non-escaped strings out of Sedna, but
they are Sedna-specific and somewhat dangerous in the regard that
returned result might become not valid XML.

one way is to say that all &lt; and &gt; need to be serialized as < and >:

declare option se:character-map "&lt;=<";
declare option se:character-map "&gt;=>";

let $det := 
<el><ConditionSpecification><HTML>U&lt;sub&gt;dc&lt;/sub&gt;</HTML></ConditionSpecification></el>,
    $symbol := $det/ConditionSpecification/HTML/text()
return $symbol


this way is bad in the sense that you have no control over which
strings are serialized correctly and which without escaping &lt; and
&gt;.
another way is to manually replace &gt; and &lt; symbols with some
unused symbols using fn:replace or fn:translate (unicode actually has
some reserved ranges which are useful for such purposes) and then to
specify that these symbols should be serialized as '<'  and '>'; like
this:

declare option se:character-map "&#xE805;=<";
declare option se:character-map "&#xE806;=>";

let $det := 
<el><ConditionSpecification><HTML>U&lt;sub&gt;dc&lt;/sub&gt;</HTML></ConditionSpecification></el>,
    $symbol := $det/ConditionSpecification/HTML/text()
return fn:translate($symbol, "&lt;&gt;", "&#xE805;&#xE806;")


On Wed, Apr 13, 2011 at 11:58 AM, Robby Pelssers <[email protected]> wrote:
> Hi all,
>
>
>
> I have a problem where in my xquery following variable contains escaped html
> content.  Is there a way that Sedna allows to disable output escaping for a
> specific tag?
>
>
>
> let $symbol := $det/ConditionSpecification/HTML/text()
>
>
>
>
>
> The output I am currently seeing in browser output is U<sub>dc</sub>
> instead of  Udc
>
>
>
> Kind regards,
>
> Robby Pelssers
>
>
>
> ------------------------------------------------------------------------------
> Forrester Wave Report - Recovery time is now measured in hours and minutes
> not days. Key insights are discussed in the 2010 Forrester Wave Report as
> part of an in-depth evaluation of disaster recovery service providers.
> Forrester found the best-in-class provider in terms of services and vision.
> Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to