|
|
@@ -0,0 +1,169 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- ============================================================= -->
|
|
|
+<!-- HEADER -->
|
|
|
+<!-- ============================================================= -->
|
|
|
+<!-- MODULE: DITA Topic XSD -->
|
|
|
+<!-- VERSION: 1.2 -->
|
|
|
+<!-- DATE: November 2009 -->
|
|
|
+<!-- -->
|
|
|
+<!-- ============================================================= -->
|
|
|
+
|
|
|
+
|
|
|
+<!-- ============================================================= -->
|
|
|
+<!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
|
|
|
+<!-- -->
|
|
|
+<!-- PURPOSE: W3C XML Schema to describe DITA Topics -->
|
|
|
+<!-- -->
|
|
|
+<!-- 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" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
|
|
|
+ <!-- Add the domains to the base topic XML Schema -->
|
|
|
+ <!-- ================ TOPIC DOMAINS ===================== -->
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.2"/>
|
|
|
+ <xs:redefine
|
|
|
+ schemaLocation="../../../../../../../Applications/oxygen/frameworks/dita/DITA-OT2.x/plugins/org.oasis-open.dita.v1_2/schema/technicalContent/xsd/programmingDomain.xsd">
|
|
|
+ <xs:complexType mixed="true" name="apiname.class">
|
|
|
+ <xs:complexContent>
|
|
|
+ <xs:extension base="apiname.class">
|
|
|
+ <xs:attributeGroup ref="procesy5-dita-extensions"/>
|
|
|
+ </xs:extension>
|
|
|
+ </xs:complexContent>
|
|
|
+ </xs:complexType>
|
|
|
+ <xs:group name="codeblock.content">
|
|
|
+ <xs:sequence>
|
|
|
+ <xs:group ref="codeblock.content"/>
|
|
|
+ <xs:element ref="RelatedFeature"/>
|
|
|
+ </xs:sequence>
|
|
|
+ </xs:group>
|
|
|
+ </xs:redefine>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:utilitiesDomain.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:indexingDomain.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:hazardstatementDomain.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:abbreviateDomain.xsd:1.2"/>
|
|
|
+ <!-- ================ GROUP DEFINITIONS ===================== -->
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclGrp.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.2"/>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicGrp.xsd:1.2"/>
|
|
|
+ <!-- ================= MODULE INLCUDE DEFINITION ================== -->
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.2"/>
|
|
|
+ <!-- ======== Table elements ======== -->
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.2"/>
|
|
|
+ <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2"/>
|
|
|
+ <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2">
|
|
|
+ <xs:group name="keyword">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="keyword"/>
|
|
|
+ <xs:group ref="pr-d-keyword"/>
|
|
|
+ <xs:group ref="ui-d-keyword"/>
|
|
|
+ <xs:group ref="sw-d-keyword"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="ph">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="ph"/>
|
|
|
+ <xs:group ref="pr-d-ph"/>
|
|
|
+ <xs:group ref="ui-d-ph"/>
|
|
|
+ <xs:group ref="hi-d-ph"/>
|
|
|
+ <xs:group ref="sw-d-ph"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="pre">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="pre"/>
|
|
|
+ <xs:group ref="pr-d-pre"/>
|
|
|
+ <xs:group ref="ui-d-pre"/>
|
|
|
+ <xs:group ref="sw-d-pre"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="dl">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="dl"/>
|
|
|
+ <xs:group ref="pr-d-dl"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="fig">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="fig"/>
|
|
|
+ <xs:group ref="pr-d-fig"/>
|
|
|
+ <xs:group ref="ut-d-fig"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="index-base">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="index-base"/>
|
|
|
+ <xs:group ref="indexing-d-index-base"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="note">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="note"/>
|
|
|
+ <xs:group ref="hazard-d-note"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:group name="term">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="term"/>
|
|
|
+ <xs:group ref="abbrev-d-term"/>
|
|
|
+ </xs:choice>
|
|
|
+ </xs:group>
|
|
|
+ <xs:attributeGroup name="props-attribute-extensions">
|
|
|
+ <xs:attributeGroup ref="props-attribute-extensions"/>
|
|
|
+ <xs:attributeGroup ref="procesy5-dita-extensions"/>
|
|
|
+ </xs:attributeGroup>
|
|
|
+ <xs:attributeGroup name="base-attribute-extensions">
|
|
|
+ <xs:attributeGroup ref="base-attribute-extensions"/>
|
|
|
+ <xs:attributeGroup ref="procesy5-dita-extensions"/>
|
|
|
+ </xs:attributeGroup>
|
|
|
+ </xs:redefine>
|
|
|
+ <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.2"/>
|
|
|
+ <xs:group name="info-types">
|
|
|
+ <xs:sequence/>
|
|
|
+ </xs:group>
|
|
|
+ <xs:attributeGroup name="domains-att">
|
|
|
+ <xs:attribute name="domains" type="xs:string"
|
|
|
+ default="(topic abbrev-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic pr-d) (topic sw-d) (topic ui-d) (topic ut-d)"
|
|
|
+ />
|
|
|
+ </xs:attributeGroup>
|
|
|
+ <xs:attributeGroup name="procesy5-dita-extensions">
|
|
|
+ <xs:attribute name="ID_PROCES"/>
|
|
|
+ <xs:attribute name="ID_ZASOB"/>
|
|
|
+ <xs:attribute name="ID_CRM_ASSOC"/>
|
|
|
+ <xs:attribute name="FIELD"/>
|
|
|
+ <xs:attribute name="typeName"/>
|
|
|
+ <xs:attribute name="xpath"/>
|
|
|
+ </xs:attributeGroup>
|
|
|
+ <xs:element name="RelatedFeature">
|
|
|
+ <xs:complexType mixed="true">
|
|
|
+ <xs:choice>
|
|
|
+ <xs:group ref="topic"/>
|
|
|
+ <xs:sequence maxOccurs="unbounded">
|
|
|
+ <xs:group ref="ph"/>
|
|
|
+ </xs:sequence>
|
|
|
+ </xs:choice>
|
|
|
+ <xs:attribute name="typeName">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>ex: typeName="p5_default_db:BILLING_OWNER"</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ <xs:simpleType>
|
|
|
+ <xs:restriction base="xs:string">
|
|
|
+ <xs:pattern value=".*:.*"/>
|
|
|
+ </xs:restriction>
|
|
|
+ </xs:simpleType>
|
|
|
+ </xs:attribute>
|
|
|
+ <xs:attribute name="xpath">
|
|
|
+ <xs:annotation>
|
|
|
+ <xs:documentation>Like ID_BILLING_OWNER to show that (in some xpath meaning) current()/ID_BILLING_OWNER = node()[@typeName]/node()[type()='primary_key']</xs:documentation>
|
|
|
+ </xs:annotation>
|
|
|
+ </xs:attribute>
|
|
|
+ </xs:complexType>
|
|
|
+ </xs:element>
|
|
|
+</xs:schema>
|