Project

Profile

Help

Document node supplied is of wrong kind

Added by Anonymous almost 20 years ago

Legacy ID: #2912326 Legacy Poster: marcvc (marcvc)

Michae, using Saxon 8.2, consider the following query (this is the shortest query I've found to reporduce the issue): let $e := <e/> order by $e return <root>{$e}{document {<e/>} }</root> It results in the following error message: Document node supplied is of wrong kind Thanks, Marc


Replies (3)

Please register to reply

RE: Document node supplied is of wrong kind - Added by Anonymous almost 20 years ago

Legacy ID: #2917886 Legacy Poster: Michael Kay (mhkay)

I've added a bug entry for this: http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1093747&amp;group_id=29872&amp;atid=397617 I suspect it's the kind of problem that only occurs when running synthetic test cases, but you never know... Michael Kay

RE: Document node supplied is of wrong kind - Added by Anonymous almost 20 years ago

Legacy ID: #2917938 Legacy Poster: marcvc (marcvc)

Michael, actually the query I provided was not the original one, I tried to simplify it, and have to admit that the result looks rather weird. Here is another one, probably more realistic resulting in the same error: declare function local:wrap_with_root($n) { <root>{$n}</root> }; local:wrap_with_root((<e/>,doc("foo.xml"))) I hope this helps, Marc

RE: Document node supplied is of wrong kind - Added by Anonymous almost 20 years ago

Legacy ID: #2917956 Legacy Poster: Michael Kay (mhkay)

Thanks, the fix works for this example too. Michael Kay

    (1-3/3)

    Please register to reply