From b9a4a385b85276307aa5c18de9db4aa8b70d1716 Mon Sep 17 00:00:00 2001 From: Doug Stephen Date: Tue, 24 Jan 2017 15:17:57 -0600 Subject: [PATCH] Change link description to use choice instead of all. Unbounded elements in all are fine in XSD 1.1 but not valid in XSD 1.0. There aren't a ton of technologies out in the wild that leverage XSD 1.1 (e.g. code generators). This definition should be acceptable for validation of XML documents but I'm not convinced it's a nice way to do things re: code generation, as the code generated by XJC for example contains a single List field containing the inertial and the collisions/visuals. --- xsd/urdf.xsd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xsd/urdf.xsd b/xsd/urdf.xsd index ccebfb26..535d1288 100644 --- a/xsd/urdf.xsd +++ b/xsd/urdf.xsd @@ -148,14 +148,14 @@ - + + type="inertial" minOccurs="0" maxOccurs="1" /> + type="visual" minOccurs="0" maxOccurs="unbounded" /> - + type="collision" minOccurs="0" maxOccurs="unbounded" /> +