declare namespace my = "my-namespace"

xdmp:document-insert('/insert-test.xml', <root xmlns="my-namespace" />)

xdmp:node-insert-child(
  doc('/insert-test.xml')/my:root,
  <direct xmlns="my-namespace"/>
)

xdmp:node-insert-child(
  doc('/insert-test.xml')/my:root,
  element computed { attribute xmlns { "my-namespace" } }
)

doc('/insert-test.xml')

Yields:

<root xmlns="my-namespace"><direct/><computed xmlns=""/></root>

Why doesn't the computed element get my-namespace?

Eric
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to