File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
exist-core/src/main/java/org/exist/xquery/functions/fn/transform Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 26
26
import net .sf .saxon .type .BuiltInAtomicType ;
27
27
import org .exist .dom .QName ;
28
28
import org .exist .dom .memtree .DocumentImpl ;
29
+ import org .exist .dom .persistent .NodeProxy ;
29
30
import org .exist .xquery .ErrorCodes ;
30
31
import org .exist .xquery .XPathException ;
31
32
import org .exist .xquery .functions .array .ArrayType ;
@@ -119,6 +120,9 @@ static net.sf.saxon.s9api.QName of(final QNameValue qName) {
119
120
}
120
121
121
122
XdmValue of (final Item item ) throws XPathException {
123
+ if (item instanceof NodeProxy ) {
124
+ return ofNode (((NodeProxy ) item ).getNode ());
125
+ }
122
126
final int itemType = item .getType ();
123
127
if (Type .subTypeOf (itemType , Type .ATOMIC )) {
124
128
return ofAtomic ((AtomicValue ) item );
You can’t perform that action at this time.
0 commit comments