indirection via attribute group doen't work?

I think XSV has a bug in dealing with attribute groups.

Given this instance:

---
<rdf:RDF
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
        xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns#
                http://www.w3.org/2000/07/rdf.xsd"
        >

<rdf:Description about="snorkel-st">
  <rdf:type resource="SnorkelType"/>
</rdf:Description>

<rdf:Description about="snorkel-st"/>

</rdf:RDF>
---

and the schema

http://www.w3.org/2000/07/rdf.xsd
     $Id: rdf.xsd,v 1.17 2000/08/04 14:37:44 swick Exp $


XSV claims that the about attribute is undeclared.
(obVersion:
Schema validating with XSV 1.156/1.65 of 2000/07/12 09:31:58
http://www.w3.org/2000/06/webdata/xsv )

But if I patch the schema, copying the attribute declaration
from a group to the complex type definition...

diff -u -r1.17 rdf.xsd
--- rdf.xsd     2000/08/04 14:37:44     1.17
+++ rdf.xsd     2000/08/04 15:05:48
@@ -142,6 +142,7 @@
       <element ref="rdf:propertyElt"/>
     </sequence>
     <attributeGroup ref="rdf:idAboutAttrOpt"/>
+    <attribute name="about" type="uriReference" /> <!-- @@ -->
     <!--@@leaving out bagidattr, propattr -->
   </complexType>


It stops complaining about the undeclared attribute.

I tried following the mergeAttrs() etc. code
in XMLSchema.py , but I couldn't figure it out,
nor find where the bug is.

Help?

http://www.w3.org/2000/06/webdata/xsv

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Friday, 4 August 2000 11:08:46 UTC