450 lines
16 KiB
XML
450 lines
16 KiB
XML
<?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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|