-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML schema invalid #95
Comments
I'm also encountering this issue. I would like to use the standard |
So the link allows an arbitrary number of collision and visual tags. If we change it to a sequence, I wonder if each type of tag have to be adjacent or can they be mixed? Reading... |
@lexknuther You seem to know a bit more about XML than I do, what about using <!-- link node type -->
<xs:complexType name="link">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="inertial"
type="inertial" minOccurs="0" maxOccurs="1" />
<xs:element name="visual"
type="visual" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="collision"
type="collision" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required" />
<!-- FIXME: undocumented but used by PR2 -->
<xs:attribute name="type" type="xs:string" />
</xs:complexType> |
Oh, maybe the sequence could contain both collision and visual definitions... |
Ok, I don't know what I'm talking about at all. |
@scpeters From my limited understanding, an For validation purposes, though, I think it should work. |
Could the |
|
choice seems like the right thing to me |
Using a |
The plot thickens. @scpeters Okay so, apparently, using It's just that almost nothing out in the wild supports XSD 1.1. |
The XML schema is currently invalid W.R.T. to the link element. The link uses an xs:all element with some unbounded elements. The XML standard only allows zero or one for the bounds. I'd recommend changing it to a sequence. Changing this would trade off correctness for possible invalidating some existing URDFs.
The text was updated successfully, but these errors were encountered: