Closed tomschr closed 8 years ago
I think, we should also check if set-xml-id is there. We don't want the same IDs in the result document.
There are documents that have no xml:id anywhere, so set-xml-id isn't required. Also, the spec says that XInclude can generate invalid documents, so not allowing that would be an error.
Implemented.
According to the XInclude spec, the href attribute is optional:
I think it does make sense to allow referencing and including parts from the same document.
Some ideas:
href
attribute (orhref="
), the spec requires to have either anxpointer
orfragid
attribute.fragid
only.set-xml-id
is there. We don't want the same IDs in the result document.