How to reuse elements from another Schema / Namespace (i.e. XHTML) with XML Schema?
问题 I'm trying to define a Schema which allows the use of specific (X)HTML elements in certain places. The problem that I'm facing is that the Schema fails compiling. Here's the Schema: <?xml version="1.0"?> <xs:schema xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/MarkUp/Schema/xhtml11.xsd" /> <xs:element name="foo"> <xs:complexType> <xs:sequence> <xs:element ref="html