[xsd] href element should be skipped as well since we jump Content element
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 11 Jan 2017 09:43:26 +0100
changeset 2271 e5d4d14ac7d3
parent 2270 fff66bc4fa29
child 2272 5f865a907e6c
[xsd] href element should be skipped as well since we jump Content element This should have been done for a while, but was not causing problem until we jumped the Content element. This is now necessary to avoid test failure. Related to #16684017
xsd.py
--- a/xsd.py	Wed Jan 11 10:45:55 2017 +0100
+++ b/xsd.py	Wed Jan 11 09:43:26 2017 +0100
@@ -373,7 +373,7 @@
         """
         subelement_defs = self[self.element_by_name(xsd_element)][1]
         for occ, path in subelement_defs:
-            if occ.target.local_name == 'id':
+            if occ.target.local_name in ('id', 'href'):
                 continue
             if not path:
                 for rtype, role, path in self.iter_rtype_role(occ.target.local_name):