<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================= -->
<!--                    HEADER                                     -->
<!-- ============================================================= -->
<!--  MODULE:    DITA Highlight Domain                             -->
<!--  VERSION:   1.0.1                                             -->
<!--  DATE:      November 2005                                     -->
<!--                                                               -->
<!-- ============================================================= -->

<!-- ============================================================= -->
<!-- SYSTEM:     Darwin Information Typing Architecture (DITA)     -->
<!--                                                               -->
<!-- PURPOSE:    Define elements and specialization attributes     -->
<!--             for Highlight Domain                              -->
<!--                                                               -->
<!-- ORIGINAL CREATION DATE:                                       -->
<!--             March 2001                                        -->
<!--                                                               -->
<!--             (C) Copyright OASIS-Open.org 2005.                -->
<!--             (C) Copyright IBM Corporation 2001, 2004.         -->
<!--             All Rights Reserved.                              -->
<!-- ============================================================= -->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:group name="hi-d-ph">
    <xs:choice>
      <xs:element ref="sup" />
      <xs:element ref="sub" />
      <xs:element ref="tt" />
      <xs:element ref="b" />
      <xs:element ref="u" />
      <xs:element ref="i" />
    </xs:choice>
  </xs:group>

  <!-- Basic form: Single Effect Formatting Phrases -->
  <xs:element name="sup" type="sup.class" >
    <xs:annotation>
      <xs:documentation>
        The superscript (&lt;<keyword>sup</keyword>&gt;) element indicates that text should
        be superscripted, or vertically raised in relationship to the surrounding
        text.  Superscripts are usually a smaller font than the surrounding text.
        Use this element only when there is not some other more proper tag. For example,
        for specific items such as GUI controls, use the <ph>
          <xref href="uicontrol.xml">uicontrol</xref>
        </ph> tag. This element is part of the DITA highlighting
        domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="sup.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/sup "/>
  </xs:complexType>

  <xs:element name="sub" type="sub.class">
    <xs:annotation>
      <xs:documentation>
        A subscript (&lt;<keyword>sub</keyword>&gt;) indicates that text should be subscripted,
        or placed lower in relationship to the surrounding text.  Subscripted text
        is often a smaller font than the surrounding text. Formatting may vary depending
        on your output process. This element is part of the DITA highlighting domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="sub.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/sub "/>
  </xs:complexType>

  <xs:element name="tt" type="tt.class" >
    <xs:annotation>
      <xs:documentation>
        The teletype (&lt;<keyword>tt</keyword>&gt;) element is used to apply monospaced
        highlighting to the content of the element.  Use this element only when there
        is not some other more proper tag. For example, for specific items such as
        GUI controls, use the <ph>
          <xref href="uicontrol.xml">uicontrol</xref>
        </ph> tag.
        This element is part of the DITA highlighting domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="tt.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/tt "/>
  </xs:complexType>

  <xs:element name="b" type="b.class" >
    <xs:annotation>
      <xs:documentation>
        The bold (&lt;<keyword>b</keyword>&gt;) element is used to apply bold highlighting
        to the content of the element. Use this element only when there is not some
        other more proper tag. For example, for specific items such as GUI controls,
        use the <ph>
          <xref href="uicontrol.xml">uicontrol</xref>
        </ph> tag.
        This element is part of the DITA highlighting domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="b.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/b "/>
  </xs:complexType>

  <xs:element name="u" type="u.class">
    <xs:annotation>
      <xs:documentation>
        The underline (&lt;<keyword>u</keyword>&gt;) element is used to apply
        underline highlighting to the content of the element.  Use this element only
        when there is not some other more proper tag. For example, for specific items
        such as GUI controls, use the <ph>
          <xref href="uicontrol.xml">uicontrol</xref>
        </ph> tag.
        This element is part of the DITA highlighting domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="u.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/u "/>
  </xs:complexType>

  <xs:element name="i" type="i.class" >
    <xs:annotation>
      <xs:documentation>
        The italic (&lt;i&gt;) element is used to apply italic highlighting
        to the content of the element. Use this element only when there
        is not some other more proper tag. For example, for specific items such as
        GUI controls, use the <ph>
          <xref href="uicontrol.xml">uicontrol</xref>
        </ph> tag.
        Italic highlighting generally means a font that is slanted for emphasis, but
        this may vary depending on your output formatting process. This element is
        part of the DITA highlighting domain.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="i.class" mixed="true">
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:group ref="basic.ph"/>
        </xs:choice>
        <xs:attributeGroup ref="global-atts"/>
        <xs:attributeGroup ref="univ-atts"/>
        <xs:attribute name="outputclass" type="xs:string"/>
        <xs:attribute ref="class" default="+ topic/ph hi-d/i "/>
  </xs:complexType>

</xs:schema>
