Hi Tim,
The following three expressions illustrate the difference. Numbers 2 and 3 return parsed XML, whereas number 1 returns the original, unparsed string. Is this the expected behavior when using string constructors?
Yes, this is how it should be. With plain quotes, entities will be resolved. However, this is not the case when using the string constructor:
for $string in ('<', ``[<]``) return <cp>{ string-to-codepoints($string) }</cp>
Does this help? Christian
``[<span start="" end="3">Sed</span> ut perspiciatis]`` => parse-xml-fragment()
``[<span start="" end="3">Sed</span> ut perspiciatis]`` => parse-xml-fragment() => parse-xml-fragment()
'<span start="" end="3">Sed</span> ut perspiciatis' => parse-xml-fragment()