W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2000

[Craig Brown <cmb@research.canon.com.au>] XSV

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 25 Jul 2000 15:55:00 +0100
To: xmlschema-dev@w3.org
Message-ID: <f5bwviajm4b.fsf@cogsci.ed.ac.uk>

attached mail follows:


Call me an idiot but.....

I have been trying to get your XSV running on my local machine.
I downloaded the stuff as suggested.

First glitch - when the validator sees:


it goes looking for the www.w3.org site and does not work.  I want
this to run on a laptop when offline.

Next - I downloaded various stuff from http://www.w3.org/1999/XMLSchema
and changed my .xsd document to:

and got the following:

Traceback (most recent call last):
  File "applyschema.py", line 747, in ?
  File "applyschema.py", line 438, in runitAndShow
  File "applyschema.py", line 588, in runit
    validate(e, t, s, ed)
  File "applyschema.py", line 47, in validate
    validateElement(element, typedef, schema, eltDecl)
  File "applyschema.py", line 123, in validateElement
  File "applyschema.py", line 325, in validateKeys
  File "applyschema.py", line 333, in validateKeys1
  File "xpath.py", line 39, in find
  File "xpath.py", line 61, in process
  File "xpath.py", line 34, in <lambda>
    return lambda e,y=None,s=self,n=part:s.children(e,n,y)
  File "xpath.py", line 103, in children
    for c in element.children:
AttributeError: 'Element' instance has no attribute 'children'

For the life of me - I can't work out what it is trying to do
and failing.  Any help would be appreciated.

Also - while I've got your attention - I am working with key and keyref.
Can you use these with a complexType rather than an element. eg:

<xsd:complexType blah>
  <xsd:element ID type="ID"/>


THanks in advance.

Craig Brown      Principal Software Engineer
Canon Information Systems Research Australia     Phone: 61 2 9805 2469
1 Thomas Holt Drive,  North Ryde,  NSW 2113.     Fax:   61 2 9805 2929

  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Tuesday, 25 July 2000 10:55:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:49 UTC