Hi Joe,
This is syntactically not possible, because "<" cannot occur in
> <testcase name="test-element-info" time="PT0.011S">
> <failure message="Failed input Input: input Expected: output Got:
> {removed}" type="UNIT0001"/>
> </testcase>
>
> What I would like is ".. Expected: <result>output</result> ..." since what
> is being returned is XML.
attribute values. The following XML is not well-formed:
<x a="<"/>
However, it’s possible to output the value of an attribute as string,
and then skip the entity encoding:
let $expected := serialize(<a/>)
declare option output:method "text";
let $xml := <failure message="Expected: { $expected }"/>
return $xml/@message/string()
Hope this helps,
Christian