1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- ============================================================= -->
|
---|
3 | <!-- HEADER -->
|
---|
4 | <!-- ============================================================= -->
|
---|
5 | <!-- MODULE: DITA Concept XSD Module -->
|
---|
6 | <!-- VERSION: 1.1 -->
|
---|
7 | <!-- DATE: November 2006 -->
|
---|
8 | <!-- -->
|
---|
9 | <!-- ============================================================= -->
|
---|
10 |
|
---|
11 |
|
---|
12 | <!-- ============================================================= -->
|
---|
13 | <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
|
---|
14 | <!-- -->
|
---|
15 | <!-- PURPOSE: W3C XML Schema to describe DITA concepts -->
|
---|
16 | <!-- -->
|
---|
17 | <!-- ORIGINAL CREATION DATE: -->
|
---|
18 | <!-- March 2001 -->
|
---|
19 | <!-- -->
|
---|
20 | <!-- (C) Copyright OASIS-Open.org 2005, 2006 -->
|
---|
21 | <!-- (C) Copyright IBM Corporation 2001, 2004. -->
|
---|
22 | <!-- All Rights Reserved. -->
|
---|
23 | <!-- ============================================================= -->
|
---|
24 |
|
---|
25 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
|
---|
26 | <!-- ==================== Import Section ======================= -->
|
---|
27 | <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.1"/>
|
---|
28 | <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="urn:oasis:names:tc:dita:xsd:ditaarch.xsd:1.1"/>
|
---|
29 |
|
---|
30 | <!--Embed concept to get specific elements -->
|
---|
31 | <xs:element name="concept">
|
---|
32 | <xs:annotation>
|
---|
33 | <xs:documentation>
|
---|
34 | The <<keyword>concept</keyword>> element is the top-level
|
---|
35 | element for a topic that answers the question <q>what is?</q> Concepts provide
|
---|
36 | background information that users must know before they can successfully work
|
---|
37 | with a product or interface. Often, a concept is an extended definition of
|
---|
38 | a major abstraction such as a process or function. It might also have an example
|
---|
39 | or a graphic, but generally the structure of a concept is fairly simple.
|
---|
40 | </xs:documentation>
|
---|
41 | </xs:annotation>
|
---|
42 | <xs:complexType>
|
---|
43 | <xs:complexContent>
|
---|
44 | <xs:extension base="concept.class">
|
---|
45 | <xs:attribute ref="class" default="- topic/topic concept/concept "/>
|
---|
46 | </xs:extension>
|
---|
47 | </xs:complexContent>
|
---|
48 | </xs:complexType>
|
---|
49 | </xs:element>
|
---|
50 |
|
---|
51 | <xs:element name="conbody">
|
---|
52 | <xs:annotation>
|
---|
53 | <xs:documentation>
|
---|
54 | The <<keyword>conbody</keyword>> element is the main body-level
|
---|
55 | element for a concept. Like the body element of a general topic, <<keyword>conbody</keyword>>
|
---|
56 | allows paragraphs, lists, and other elements as well as sections and examples.
|
---|
57 | But <<keyword>conbody</keyword>> has a constraint that a section
|
---|
58 | or an example can be followed only by other sections or examples.
|
---|
59 | </xs:documentation>
|
---|
60 | </xs:annotation>
|
---|
61 | <xs:complexType>
|
---|
62 | <xs:complexContent>
|
---|
63 | <xs:extension base="conbody.class">
|
---|
64 | <xs:attribute ref="class" default="- topic/body concept/conbody "/>
|
---|
65 | </xs:extension>
|
---|
66 | </xs:complexContent>
|
---|
67 | </xs:complexType>
|
---|
68 | </xs:element>
|
---|
69 |
|
---|
70 | <xs:group name="concept-info-types">
|
---|
71 | <xs:choice>
|
---|
72 | <xs:group ref="concept"/>
|
---|
73 | <xs:group ref="info-types" />
|
---|
74 | </xs:choice>
|
---|
75 | </xs:group>
|
---|
76 |
|
---|
77 | <!-- Base type: topic.class -->
|
---|
78 | <xs:complexType name="concept.class">
|
---|
79 | <xs:sequence>
|
---|
80 | <xs:group ref="title"/>
|
---|
81 | <xs:group ref="titlealts" minOccurs="0"/>
|
---|
82 | <xs:choice minOccurs="0">
|
---|
83 | <xs:group ref="shortdesc" />
|
---|
84 | <xs:group ref="abstract" />
|
---|
85 | </xs:choice>
|
---|
86 | <xs:group ref="prolog" minOccurs="0"/>
|
---|
87 | <xs:group ref="conbody" minOccurs="0"/>
|
---|
88 | <xs:group ref="related-links" minOccurs="0"/>
|
---|
89 | <xs:group ref="concept-info-types" minOccurs="0" maxOccurs="unbounded"/>
|
---|
90 | </xs:sequence>
|
---|
91 | <xs:attribute name="id" type="xs:ID" use="required"/>
|
---|
92 | <xs:attribute name="conref" type="xs:string"/>
|
---|
93 | <xs:attributeGroup ref="select-atts"/>
|
---|
94 | <xs:attribute ref="ditaarch:DITAArchVersion" />
|
---|
95 | <xs:attribute name="outputclass" type="xs:string"/>
|
---|
96 | <xs:attributeGroup ref="localization-atts"/>
|
---|
97 | <xs:attributeGroup ref="global-atts"/>
|
---|
98 | </xs:complexType>
|
---|
99 |
|
---|
100 | <!-- Base type: body.class -->
|
---|
101 | <xs:complexType name="conbody.class">
|
---|
102 | <xs:sequence>
|
---|
103 | <xs:group ref="body.cnt" minOccurs="0" maxOccurs="unbounded"/>
|
---|
104 | <xs:choice minOccurs="0" maxOccurs="unbounded">
|
---|
105 | <xs:group ref="section"/>
|
---|
106 | <xs:group ref="example"/>
|
---|
107 | </xs:choice>
|
---|
108 | </xs:sequence>
|
---|
109 | <xs:attribute name="outputclass" type="xs:string"/>
|
---|
110 | <xs:attribute name="base" type="xs:string" />
|
---|
111 | <xs:attributeGroup ref="base-attribute-extensions"/>
|
---|
112 | <xs:attributeGroup ref="id-atts"/>
|
---|
113 | <xs:attributeGroup ref="localization-atts"/>
|
---|
114 | <xs:attributeGroup ref="global-atts"/>
|
---|
115 | </xs:complexType>
|
---|
116 | </xs:schema>
|
---|