Incorrect XT0420 error?

Help
marcvc
2004-12-16
2012-10-08
  • marcvc
    marcvc
    2004-12-16

    Michael,

    using Saxon 8.1.1, consider the following query:

    declare function local:test() {<e>{attribute {'a'}{'b'}}{attribute {'c'}{'d'}}</e>};
    local:test()

    It results in: XT0420: Attribute nodes must be created before the children of an element node

    In case it helps, removing the user defined function or combining both enclosed expressions in a single one seem to resolve the issue.

    Thanks,
    Marc