Error when 'xml:base' attribute is present

May 8, 2012 at 11:56 PM

I'm having trouble converting a schema containing a reference to the xml:base attribute. Here's a sample schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="" targetNamespace="urn:foobar">
  <xs:import namespace="" schemaLocation=""/>
  <xs:element name="foo">
      <xs:attribute ref="xml:base"/>

When I run this through Xsd2Code, it complains:

Error: The '' attribute is not declared

Maybe something is wrong with my import directive?  (Specifying a local xml.xsd file doesn't work either.)

This schema is properly converted by xsd.exe (with or without the import directive).

Thanks in advance for any help!

Aug 27, 2013 at 2:06 AM
I also ran into this problem. It happens with the Collada 1.4.1 XSD.