Page MenuHomeSoftware Heritage

swh.xsd: Use the https://www.softwareheritage.org/schema/2018/deposit namespace
ClosedPublic

Authored by vlorentz on Nov 26 2020, 1:12 PM.

Diff Detail

Repository
rDDEP Push deposit
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4601 (id=16339)

Could not rebase; Attempt merge onto ad6041d312...

Updating ad6041d3..2e4a524a
Fast-forward
 docs/specs/swh.xsd | 35 +++++++++++++++++++++++------------
 1 file changed, 23 insertions(+), 12 deletions(-)
Changes applied before test
commit 2e4a524a2480dbd3baa6f59390528fd694ea7390
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Nov 24 12:20:19 2020 +0100

    swh.xsd: Use the https://www.softwareheritage.org/schema/2018/deposit namespace

commit 88b102aec44185b97b06135d862821bb4c138acc
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Nov 24 12:11:31 2020 +0100

    swh.xsd: Improve readability
    
    This also moves the inner element definitions of <swh:reference> to
    root elements, so they can be reused by new definitions in the future.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/441/ for more details.

ardumont added a subscriber: ardumont.

lgtm nonetheless though :)

docs/specs/swh.xsd
4

I don't know what those mean, can you please englighten me?

This revision is now accepted and ready to land.Nov 26 2020, 2:02 PM
docs/specs/swh.xsd
4

targetNamespace means the top-level elements (deposit, origin, and object) defined here are in the given namespace.

xmlns:swh defines a namespace prefix, as usual

elementFormDefault="qualified" means the inner elements (reference, bindings, and binding here) should also be in the targetNamespace.