मैं एक साधारण एक्सएमएल के लिए एक एक्सएमएल स्कीमा डाल रहा हूं (दोनों एक्सएमएल और स्कीमा के लिए बेलो देखें)। लेकिन मुझे सेक्शन नोड के संबंध में निम्न त्रुटि मिलती है: "तत्व में सफेद स्थान नहीं हो सकता है। सामग्री मॉडल खाली है।" । नेट ब्राउजिंग करने के लिए मुझे कोई संक्षिप्त स्पष्टीकरण नहीं मिला क्योंकि इसका अर्थ यह है कि मैं इसे ठीक कर सकता हूं। क्या कोई मदद कर सकता है?त्रुटि क्या है "तत्व में सफेद स्थान नहीं हो सकता है। सामग्री मॉडल खाली है।" क्या मतलब है?
संपादित करें: स्कीमा के साथ सहायता प्रदान करने के लिए सभी के लिए धन्यवाद। मुझे लगता है कि यह एक संक्षिप्त वर्णन करने में मदद करेगा कि सामग्री मॉडल क्या है और यह यहां खाली क्यों है।
एक्सएमएल:
<config>
<section name="facets">
<facet type="format" label="Format" max="4"/>
<facet type="language" max="4"/>
<facet type="pubdate" max="6" submax="8"/>
<facet type="ice_topic" label="Fiction: Topic"/>
</section>
</config>
स्कीमा:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="config">
<xs:complexType>
<xs:sequence>
<xs:element name="section" type="sectionBase"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="sectionBase">
<xs:attribute name="name" type="xs:ID"/>
</xs:complexType>
<xs:complexType name="sectionFacets" >
<xs:complexContent>
<xs:extension base="sectionBase">
<xs:sequence>
<xs:element name="facet" type="sectionFacetsBaseFacet"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="sectionFacetsBaseFacet">
<xs:attribute name="label" type="xs:ID"/>
<xs:attribute name="max" type="xs:positiveInteger"/>
</xs:complexType>
<xs:complexType name="sectionFacetsFormat">
<xs:complexContent>
<xs:extension base="sectionFacetsBaseFacet"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="sectionFacetsPubdate">
<xs:complexContent>
<xs:extension base="sectionFacetsBaseFacet">
<xs:attribute name="submax" type="xs:positiveInteger"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
एलेक्स की आवश्यकता है, मैं आपका जवाब स्वीकार करता हूं क्योंकि यह सही है। मैं अभी भी समझना चाहता हूं कि सामग्री मॉडल भाग का क्या अर्थ है। कोई उपाय? – Boaz
सामग्री मॉडल के बारे में सामग्री पढ़ना: http://www.stylusstudio.com/w3c/schema0/groups.htm –