Closed xml-project closed 4 years ago
I think it's an unlikely situation. If we use the base URI of the step, it won't be an error but it might be unexpected. If we make it an error, the pipeline author can work around it by setting the base URI. Flip a coin?
I think it's an unlikely situation.
Yes it is. But I do not know how to handle this case. The specs suppose a base URI is present, but this need not to be the case as I showed.
If we make it an error, the pipeline author can work around it by setting the base URI.
Yes, and this would be my reason for an error. If an author explicitly deletes the base URI of the archive, he did something wrong if he later wants to unarchive.
I think that's a convincing reason to make it an error.
Agreed. If relative-to
isn't given, and the source archive doesn't have a base URI, that's an error.
Fixed with #304
In the specs we say:
The case not covered is:
relative-to
is not set and the archive does not have a base URI: Remember we changedp:set-properties
so now a pipeline author can explicitly remove a document's base URI. Example:What do we do in this case: (a) Raise an error or (b) use the step's base URI?