Re: [xml] Can't validate XML Schema which uses the HTML XSD



On Tue, 31 Jul 2007, Tim Van Holder wrote:

Timothy S. Nelson wrote:
<xsd:import namespace="http://www.w3.org/1999/xhtml";
        schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"/>
A cursory glance at that XSD (and the XSDs it references shows that
there does not seem to be a top-level div element declared; what I do
see (in http://www.w3.org/MarkUp/SCHEMA/xhtml11-model-1.xsd) is

<xs:group name="xhtml.BlkStruct.class">
 <xs:choice>
   <xs:element name="p" type="xhtml.p.type"/>
   <xs:element name="div" type="xhtml.div.type"/>
 </xs:choice>
</xs:group>

So maybe you should put

<xsd:complexType name="TTest">
 <xsd:complexContent>
   <xsd:extension base="jz:TSection">
     <xsd:sequence>
       <xsd:element name="div" type="html:xhtml.div.type"/>
     </xsd:sequence>
   </xsd:extension>
 </xsd:complexContent>
</xsd:complexType>


in your schema.


        Great!  That seems to resolve the problem!

        :)


---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: wayland smartchat net au | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]