[xquery-talk] namespace declarations in an element

daniela florescu dflorescu at mac.com
Thu May 26 12:50:00 PDT 2011

If the input element was already schema validated:   this transformation will add indeed a namespace,
but will loose the original type annotation of the element that was given as result of schema validation.

The result will end up untyped (unlike the original element).

That's a serious problem for semi-structured databases.

It's the fault of the semantics of node copying.


On May 26, 2011, at 11:46 AM, David Carlisle wrote:

> On 26/05/2011 19:24, daniela florescu wrote:
>> This solution looses the original types, which for semi-structured data are essential.
> I'm not sure I understand that comment, the solution is about adding a namespace node to a constructed element, that dpesn't lose type information. If the data you are outputting is placed into am element attribute or content then that's essentially just outputting its string value and losing type information unless the constructed element is re-validated, but adding a namespace node isn't the cause of that loss.
> David
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk

More information about the talk mailing list