"Michael Kay" <mike@...> writes:
> If you invoke validation from the Java API, then it's probably even more
> dependent on the fine detail of what
> you are doing.
It took a little digging, but I think I worked it out. Validation
preserves the base URI of the input document, if it has one, but it
does not preserve the base URIs of the individual nodes in the
So, for example, if you compose a document from several external
parsed entities, the base URIs of the nodes of the document you send
*into* validation vary according to the external entity from which
In the document that comes *out* of validation, only the base URI of
the document has been preserved, so all the fine detail about the base
URIs of the individual nodes has been lost.
I suspect that this is because xdmNode.asSource() doesn't/can't
preserve the individual base URIs.
Can I validate the XdmNode tree directly, without converting it to a
Source, so that the individual node's base URIs can be preserved?
Be seeing you,
Norman Walsh <ndw@...> | Art has to move you and design does
http://nwalsh.com/ | not, unless it's a good design for a
| bus.--David Hockney