-
-
Notifications
You must be signed in to change notification settings - Fork 190
[BUG] fn:transform input document conversion to XdmNode #5682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Additional information. When converting the document to a SAX document (
This is because In
which is specific to eXist's in-memory tree, and not compatible with At the moment, I have no idea how to solve this. |
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
…nsparent to the org.w3c.dom API Closes eXist-db/exist#5682
Description
When a document containing a
org.exist.dom.memtree.ReferenceNode
is transformed byfn:transform
, theReferenceNode
is not passed on to Saxon. In other words, the input document becomes incomplete.The problem occurs in
/exist-core/src/main/java/org/exist/xquery/functions/fn/transform/Transform.java
, from line 176.The
source
variable contains ajavax.xml.transform.dom.DOMSource
, which contains anode
field that is aDocumentImpl
. The String representation (shown by the Java debugger in Eclipse) of thisnode
is (edited for readability):When the
xdmNode
has been built, its String representation is:The reference to
<question-wrap>
has disappeared, and is not seen by the XSLT stylesheet.It seems that
sourceBuilder.build(source)
does not handleReferenceNode
s correctly.This issue is not related to this earlier pull request.
Expected behavior
The complete document should be passed on to Saxon.
To Reproduce
Reproducing this depends on the exact construction of the input document. The input document comes from an eXist collection, but I have not found a way to easily make a document that has a
ReferenceNode
.Context (please always complete the following information)
I am using the 'develop-6.x.x' branch of 2025-03-18 (3ae1884).
eXist Version: 6.4.0-SNAPSHOT
eXist Build: 2025-03-18T13:56:52Z
Operating System: Windows 10 10.0 amd64
Java Version: 11.0.14.1
Further remarks
I am investigating this, and may add more details to this issue.
If I find a solution, I will provide a pull request.
The text was updated successfully, but these errors were encountered: