1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================= -->
<!-- HEADER -->
<!-- ============================================================= -->
<!-- MODULE: DITA Software Domain -->
<!-- VERSION: 1.2 -->
<!-- DATE: November 2009 -->
<!-- -->
<!-- ============================================================= -->
<!-- ============================================================= -->
<!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
<!-- -->
<!-- PURPOSE: Define elements and specialization attributes -->
<!-- for Software Domain -->
<!-- -->
<!-- ORIGINAL CREATION DATE: -->
<!-- March 2001 -->
<!-- -->
<!-- (C) Copyright OASIS-Open.org 2005, 2009 -->
<!-- (C) Copyright IBM Corporation 2001, 2004. -->
<!-- All Rights Reserved. -->
<!-- ============================================================= -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- 20021227 EAS: Use xml:space (preserve) for pre derivs: codeblock, msgblock, screen -->
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.2"/>
<xs:annotation>
<xs:appinfo>
<dita:domainsModule xmlns:dita="http://dita.oasis-open.org/architecture/2005/">(topic sw-d)</dita:domainsModule>
</xs:appinfo>
<xs:documentation>
</xs:documentation>
</xs:annotation>
<xs:group name="sw-d-ph">
<xs:choice>
<xs:element ref="msgph" />
<xs:element ref="filepath" />
<xs:element ref="userinput" />
<xs:element ref="systemoutput" />
</xs:choice>
</xs:group>
<xs:group name="sw-d-keyword">
<xs:choice>
<xs:element ref="msgnum" />
<xs:element ref="varname" />
<xs:element ref="cmdname" />
</xs:choice>
</xs:group>
<xs:group name="sw-d-pre">
<xs:choice>
<xs:element ref="msgblock" />
</xs:choice>
</xs:group>
<xs:group name="msgph">
<xs:sequence>
<xs:choice>
<xs:element ref="msgph"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="msgnum">
<xs:sequence>
<xs:choice>
<xs:element ref="msgnum"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="varname">
<xs:sequence>
<xs:choice>
<xs:element ref="varname"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="msgblock">
<xs:sequence>
<xs:choice>
<xs:element ref="msgblock"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="cmdname">
<xs:sequence>
<xs:choice>
<xs:element ref="cmdname"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="filepath">
<xs:sequence>
<xs:choice>
<xs:element ref="filepath"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="userinput">
<xs:sequence>
<xs:choice>
<xs:element ref="userinput"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:group name="systemoutput">
<xs:sequence>
<xs:choice>
<xs:element ref="systemoutput"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:element name="msgph">
<xs:annotation>
<xs:documentation>
The message phrase (<msgph>) element contains the text content
of a message produced by an application or program. It can also contain the
variable name (varname) element to illustrate where variable text content
can occur in the message. This element is part of the DITA software domain,
a special set of DITA elements designed to document software tasks, concepts
and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="msgph.class">
<xs:attribute ref="class" default="+ topic/ph sw-d/msgph "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="msgph.class" mixed="true">
<xs:sequence>
<xs:group ref="msgph.content"/>
</xs:sequence>
<xs:attributeGroup ref="msgph.attributes"/>
</xs:complexType>
<xs:group name="msgph.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="words.cnt" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="msgph.attributes">
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="msgnum">
<xs:annotation>
<xs:documentation>
The message number (<<keyword>msgnum</keyword>>) element contains the number
of a message produced by an application or program. This element is part of
the DITA software domain, a special set of DITA elements designed to document
software tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="msgnum.class">
<xs:attribute ref="class" default="+ topic/keyword sw-d/msgnum "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="msgnum.class" mixed="true">
<xs:sequence>
<xs:group ref="msgnum.content"></xs:group>
</xs:sequence>
<xs:attributeGroup ref="msgnum.attributes"/>
</xs:complexType>
<xs:group name="msgnum.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="text" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="msgnum.attributes">
<xs:attribute name="keyref" type="xs:string"/>
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="varname">
<xs:annotation>
<xs:documentation>
The variable name (<<keyword>varname</keyword>>) element defines a variable
that must be supplied to a software application. The variable name element
is very similar to the variable (var) element, but variable name is used outside
of syntax diagrams, possibly within a message or API description to describe
a system variable or environment variable. This element is part of the DITA
software domain, a special set of DITA elements designed to document software
tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="varname.class">
<xs:attribute ref="class" default="+ topic/keyword sw-d/varname "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="varname.class" mixed="true">
<xs:sequence>
<xs:group ref="varname.content"></xs:group>
</xs:sequence>
<xs:attributeGroup ref="varname.attributes"/>
</xs:complexType>
<xs:group name="varname.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="text" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="varname.attributes">
<xs:attribute name="keyref" type="xs:string"/>
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="msgblock">
<xs:annotation>
<xs:documentation>
The message block (<<keyword>msgblock</keyword>>) element contains a multi-line
message or set of messages. The message block can contain multiple message
numbers and message descriptions, each enclosed in a <<keyword>msgnum</keyword>> and <<keyword>msgph</keyword>> element.
It can also contain the message content directly. This element is part of
the DITA software domain, a special set of DITA elements designed to document
software tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="msgblock.class">
<xs:attribute ref="class" default="+ topic/pre sw-d/msgblock "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="msgblock.class" mixed="true">
<xs:sequence>
<xs:group ref="msgblock.content"/>
</xs:sequence>
<xs:attributeGroup ref="msgblock.attributes"/>
</xs:complexType>
<xs:group name="msgblock.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="words.cnt"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="msgblock.attributes">
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attribute name="spectitle" type="xs:string"/>
<xs:attribute ref="xml:space" fixed="preserve"/>
<xs:attributeGroup ref="display-atts"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="cmdname">
<xs:annotation>
<xs:documentation>
The command name (<cmdname>) element specifies the name of a command
when it is part of a software discussion. This element is part of the DITA
software domain, a special set of DITA elements designed to document software
tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="cmdname.class">
<xs:attribute ref="class" default="+ topic/keyword sw-d/cmdname "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="cmdname.class" mixed="true">
<xs:sequence>
<xs:group ref="cmdname.content"></xs:group>
</xs:sequence>
<xs:attributeGroup ref="cmdname.attributes"/>
</xs:complexType>
<xs:group name="cmdname.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="text" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="cmdname.attributes">
<xs:attribute name="keyref" type="xs:string"/>
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="filepath">
<xs:annotation>
<xs:documentation>
The <<keyword>filepath</keyword>> element indicates
the name and optionally the location of a referenced file by specifying the
directory containing the file, and other directories that may precede it in
the system hierarchy. This element is part of the DITA software domain, a
special set of DITA elements designed to document software tasks, concepts
and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="filepath.class">
<xs:attribute ref="class" default="+ topic/ph sw-d/filepath "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="filepath.class" mixed="true">
<xs:sequence>
<xs:group ref="filepath.content"/>
</xs:sequence>
<xs:attributeGroup ref="filepath.attributes"/>
</xs:complexType>
<xs:group name="filepath.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="words.cnt" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="filepath.attributes">
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="userinput">
<xs:annotation>
<xs:documentation>
The user input (<<keyword>userinput</keyword>>) element represens the text
a user should input in response to a program or system prompt.
This element is part of the DITA software domain, a special set of DITA elements
designed to document software tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="userinput.class">
<xs:attribute ref="class" default="+ topic/ph sw-d/userinput "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="userinput.class" mixed="true">
<xs:sequence>
<xs:group ref="userinput.content"/>
</xs:sequence>
<xs:attributeGroup ref="userinput.attributes"/>
</xs:complexType>
<xs:group name="userinput.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="words.cnt" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="userinput.attributes">
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
<xs:element name="systemoutput">
<xs:annotation>
<xs:documentation>
The system output (<<keyword>systemoutput</keyword>>) element
represents computer output or responses to a command or situation.
A generalized element, it represents any kind of output from the computer,
so the author may wish to choose more specific markup, such as msgph, for
messages from the application. The system output element is part of the DITA
software domain, a special set of DITA elements designed to document software
tasks, concepts and reference information.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="systemoutput.class">
<xs:attribute ref="class" default="+ topic/ph sw-d/systemoutput "/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="systemoutput.class" mixed="true">
<xs:sequence>
<xs:group ref="systemoutput.content"/>
</xs:sequence>
<xs:attributeGroup ref="systemoutput.attributes"/>
</xs:complexType>
<xs:group name="systemoutput.content">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="words.cnt" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:attributeGroup name="systemoutput.attributes">
<xs:attribute name="outputclass" type="xs:string"/>
<xs:attributeGroup ref="univ-atts"/>
<xs:attributeGroup ref="global-atts"/>
</xs:attributeGroup>
</xs:schema>
|