Языки разметки Семантического веба. Практические аспекты. Елизаров А.М - 28 стр.

UptoLike

28
<author>M. Malakhaltsev</author>
</article>
<article ID="2">
<title>MathML and RDF</title>
<author>E. Lipachev</author>
</article>
</articles>
</journal>
Пример 15. Schema_3.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="journal">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="jrntitle" type="xsd:string"/>
<xsd:element name="contacts" type="contactType"/>
<xsd:element name="articles" type="articlesType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="contactType">
<xsd:sequence>
<xsd:element name="address" type="xsd:string"/>
<xsd:element name="url" type="xsd:anyURI"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="articlesType">
<xsd:sequence>
<xsd:element name="article" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="title" maxOccurs="1"
type="xsd:string"/>
<xsd:element name="author" maxOccurs="15"
type="xsd:string"/>
</xsd:sequence>
M. Malakhaltsev

MathML and RDF E. Lipachev
Пример 15. Schema_3.xsd 28