eXist-db / exist

eXist Native XML Database and Application Platform
https://exist-db.org
GNU Lesser General Public License v2.1
428 stars 179 forks source link

XSLT cannot return a document node to eXist-db XQuery #2096

Open adamretter opened 6 years ago

adamretter commented 6 years ago

Returning an <xsl:document> from transform:transform actually causes eXist-db to return an XDM element(), it should instead return an XDM document-node().

duncdrum commented 6 years ago

document-node handling is repeatedly creating problems it seems. see #1964, #1932, #1562, …

adamretter commented 6 years ago

Yeah, it seems our in-memory DOM is basically broken and has been for a long time. I think it was based on an old version of Saxon's TinyTree, and then modified. My plan is to bring over the latest version from Saxon as soon as I can.

brihaye commented 6 years ago

If I remember well, one of the developers, years ago, commited some code that removed all document-node handling...