Orb/Doxygen/DITA/plugins/apiref/xsd/apiRef.xsd
changeset 3 d8fccb2cd802
parent 0 42188c7ea2d9
equal deleted inserted replaced
2:932c358ece3e 3:d8fccb2cd802
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!--
       
     3  | (C) Copyright IBM Corporation 2005 - 2006. All Rights Reserved.
       
     4  *-->
       
     5 <!-- vocabulary declarations -->
       
     6 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
       
     7   <xs:include schemaLocation="../../../schema/referenceGrp.xsd"/>
       
     8   <xs:include schemaLocation="apiRefGrp.xsd"/>
       
     9 
       
    10   <xs:include schemaLocation="../../../schema/programmingDomain.xsd"/>
       
    11   <xs:include schemaLocation="../../../schema/highlightDomain.xsd"/>
       
    12   <xs:include schemaLocation="../../../schema/softwareDomain.xsd"/>
       
    13   <xs:include schemaLocation="../../../schema/uiDomain.xsd"/>
       
    14   <xs:include schemaLocation="../../../schema/utilitiesDomain.xsd"/>
       
    15   <xs:include schemaLocation="apiDomain.xsd"/>
       
    16   
       
    17   
       
    18   <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="../../../schema/ditaarch.xsd"/>
       
    19   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../../schema/xml.xsd"/>
       
    20   
       
    21   
       
    22   <!-- vocabulary substitution -->
       
    23   <xs:redefine schemaLocation="../../../schema/topicGrp.xsd">
       
    24   <xs:group name="pre">
       
    25     <xs:choice>
       
    26       <xs:group ref="pre"/>
       
    27       <xs:group ref="pr-d-pre"/>
       
    28       <xs:group ref="sw-d-pre"/>
       
    29       <xs:group ref="ui-d-pre"/>
       
    30     </xs:choice>
       
    31   </xs:group>
       
    32   <xs:group name="keyword">
       
    33     <xs:choice>
       
    34       <xs:group ref="keyword"/>
       
    35       <xs:group ref="pr-d-keyword"/>
       
    36       <xs:group ref="sw-d-keyword"/>
       
    37       <xs:group ref="ui-d-keyword"/>
       
    38     </xs:choice>
       
    39   </xs:group>
       
    40   <xs:group name="ph">
       
    41     <xs:choice>
       
    42       <xs:group ref="ph"/>
       
    43       <xs:group ref="pr-d-ph"/>
       
    44       <xs:group ref="sw-d-ph"/>
       
    45       <xs:group ref="hi-d-ph"/>
       
    46       <xs:group ref="ui-d-ph"/>
       
    47     </xs:choice>
       
    48   </xs:group>
       
    49   <xs:group name="fig">
       
    50     <xs:choice>
       
    51       <xs:group ref="fig"/>
       
    52       <xs:group ref="pr-d-fig"/>
       
    53       <xs:group ref="ut-d-fig"/>
       
    54     </xs:choice>
       
    55   </xs:group>
       
    56   <xs:group name="dl">
       
    57     <xs:choice>
       
    58       <xs:group ref="dl"/>
       
    59       <xs:group ref="pr-d-dl"/>
       
    60     </xs:choice>
       
    61   </xs:group>
       
    62   <xs:group name="xref">
       
    63     <xs:choice>
       
    64       <xs:group ref="xref"/>
       
    65       <xs:group ref="api-d-xref"/>
       
    66     </xs:choice>
       
    67   </xs:group>
       
    68   </xs:redefine>
       
    69   <!-- Declare the domains -->
       
    70   
       
    71   <!-- Embed the base topic module to define the base elements -->
       
    72   <!-- Embed the base reference module to define the base elements -->
       
    73   <!-- Embed the API module to get the generic API Reference elements -->
       
    74   <!-- vocabulary definitions -->
       
    75 
       
    76   <xs:redefine schemaLocation="../../../schema/topicMod.xsd" >
       
    77   	<xs:complexType name="topic.class">
       
    78   		<xs:complexContent>
       
    79   			<xs:extension base="topic.class">
       
    80   				<xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d)                            (topic ut-d) (topic pr-d api-d)"/>
       
    81   			</xs:extension>
       
    82   		</xs:complexContent>
       
    83   	</xs:complexType>
       
    84   </xs:redefine>
       
    85   <xs:redefine schemaLocation="../../../schema/referenceMod.xsd" >
       
    86   	<xs:complexType name="reference.class">
       
    87   		<xs:complexContent>
       
    88   			<xs:extension base="reference.class">
       
    89   				<xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d)                            (topic ut-d) (topic pr-d api-d)"/>
       
    90   			</xs:extension>
       
    91   		</xs:complexContent>
       
    92   	</xs:complexType>
       
    93   </xs:redefine>
       
    94 
       
    95   <xs:redefine schemaLocation="apiRefMod.xsd" >
       
    96   	<xs:complexType name="apiRef.class">
       
    97   		<xs:complexContent>
       
    98   			<xs:extension base="apiRef.class">
       
    99   				<xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic pr-d) (topic sw-d)                            (topic ut-d) (topic pr-d api-d)"/>
       
   100   			</xs:extension>
       
   101   		</xs:complexContent>
       
   102   	</xs:complexType>
       
   103   </xs:redefine>
       
   104 
       
   105   <!-- Define topic nesting -->
       
   106   <xs:group name="info-types" >
       
   107     <xs:sequence>
       
   108       <xs:group ref="apiRef-info-types"/>
       
   109     </xs:sequence>
       
   110   </xs:group>
       
   111   
       
   112 </xs:schema>