Orb/Doxygen/DITA/plugins/apiref/xsd/apiDomain.xsd
changeset 3 d8fccb2cd802
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 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
       
     6   <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="../../../schema/ditaarch.xsd"/>
       
     7   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../../schema/xml.xsd"/>
       
     8 
       
     9    <xs:group name="api-d-xref">
       
    10      <xs:choice>
       
    11        <xs:element ref="apipackage"/>
       
    12        <xs:element ref="apiclassifier"/>
       
    13        <xs:element ref="apioperation"/>
       
    14        <xs:element ref="apivalue"/>
       
    15      </xs:choice>
       
    16    </xs:group>
       
    17   
       
    18   
       
    19   <xs:element name="apipackage" >
       
    20     <xs:complexType mixed="true">
       
    21       <xs:attributeGroup ref="apipackage.attlist"/>
       
    22     </xs:complexType>
       
    23   </xs:element>
       
    24   <xs:attributeGroup name="apipackage.attlist">
       
    25     <xs:attribute name="href"/>
       
    26     <xs:attribute name="keyref"/>
       
    27     <xs:attribute name="type"/>
       
    28     <xs:attributeGroup ref="univ-atts"/>
       
    29     <xs:attribute name="format"/>
       
    30     <xs:attribute name="scope">
       
    31       <xs:simpleType>
       
    32         <xs:restriction base="xs:token">
       
    33           <xs:enumeration value="local"/>
       
    34           <xs:enumeration value="peer"/>
       
    35           <xs:enumeration value="external"/>
       
    36           <xs:enumeration value="-dita-use-conref-target"/>
       
    37         </xs:restriction>
       
    38       </xs:simpleType>
       
    39     </xs:attribute>
       
    40     <xs:attribute name="outputclass"/>
       
    41     <xs:attributeGroup ref="global-atts"/>
       
    42     <xs:attribute name="class" default="+ topic/xref pr-d/xref api-d/apipackage "/>
       
    43   </xs:attributeGroup>
       
    44   <xs:element name="apiclassifier" >
       
    45     <xs:complexType mixed="true">
       
    46       <xs:attributeGroup ref="apiclassifier.attlist"/>
       
    47     </xs:complexType>
       
    48   </xs:element>
       
    49   <xs:attributeGroup name="apiclassifier.attlist">
       
    50     <xs:attribute name="href"/>
       
    51     <xs:attribute name="keyref"/>
       
    52     <xs:attribute name="type"/>
       
    53     <xs:attributeGroup ref="univ-atts"/>
       
    54     <xs:attribute name="format"/>
       
    55     <xs:attribute name="scope">
       
    56       <xs:simpleType>
       
    57         <xs:restriction base="xs:token">
       
    58           <xs:enumeration value="local"/>
       
    59           <xs:enumeration value="peer"/>
       
    60           <xs:enumeration value="external"/>
       
    61           <xs:enumeration value="-dita-use-conref-target"/>
       
    62         </xs:restriction>
       
    63       </xs:simpleType>
       
    64     </xs:attribute>
       
    65     <xs:attribute name="outputclass"/>
       
    66     <xs:attributeGroup ref="global-atts"/>
       
    67     <xs:attribute name="class" default="+ topic/xref pr-d/xref api-d/apiclassifier "/>
       
    68   </xs:attributeGroup>
       
    69   <xs:element name="apioperation" >
       
    70     <xs:complexType mixed="true">
       
    71       <xs:attributeGroup ref="apioperation.attlist"/>
       
    72     </xs:complexType>
       
    73   </xs:element>
       
    74   <xs:attributeGroup name="apioperation.attlist">
       
    75     <xs:attribute name="href"/>
       
    76     <xs:attribute name="keyref"/>
       
    77     <xs:attribute name="type"/>
       
    78     <xs:attributeGroup ref="univ-atts"/>
       
    79     <xs:attribute name="format"/>
       
    80     <xs:attribute name="scope">
       
    81       <xs:simpleType>
       
    82         <xs:restriction base="xs:token">
       
    83           <xs:enumeration value="local"/>
       
    84           <xs:enumeration value="peer"/>
       
    85           <xs:enumeration value="external"/>
       
    86           <xs:enumeration value="-dita-use-conref-target"/>
       
    87         </xs:restriction>
       
    88       </xs:simpleType>
       
    89     </xs:attribute>
       
    90     <xs:attribute name="outputclass"/>
       
    91     <xs:attributeGroup ref="global-atts"/>
       
    92     <xs:attribute name="class" default="+ topic/xref pr-d/xref api-d/apioperation "/>
       
    93   </xs:attributeGroup>
       
    94   <xs:element name="apivalue" >
       
    95     <xs:complexType mixed="true">
       
    96       <xs:attributeGroup ref="apivalue.attlist"/>
       
    97     </xs:complexType>
       
    98   </xs:element>
       
    99   <xs:attributeGroup name="apivalue.attlist">
       
   100     <xs:attribute name="href"/>
       
   101     <xs:attribute name="keyref"/>
       
   102     <xs:attribute name="type"/>
       
   103     <xs:attributeGroup ref="univ-atts"/>
       
   104     <xs:attribute name="format"/>
       
   105     <xs:attribute name="scope">
       
   106       <xs:simpleType>
       
   107         <xs:restriction base="xs:token">
       
   108           <xs:enumeration value="local"/>
       
   109           <xs:enumeration value="peer"/>
       
   110           <xs:enumeration value="external"/>
       
   111           <xs:enumeration value="-dita-use-conref-target"/>
       
   112         </xs:restriction>
       
   113       </xs:simpleType>
       
   114     </xs:attribute>
       
   115     <xs:attribute name="outputclass"/>
       
   116     <xs:attributeGroup ref="global-atts"/>
       
   117     <xs:attribute name="class" default="+ topic/xref pr-d/xref api-d/apivalue "/>
       
   118   </xs:attributeGroup>
       
   119 </xs:schema>