<?xml version='1.0' encoding='ISO-8859-1'?>

<!-- This file makes part of an XSL Test Suite -->
<!-- Text styles test - Text decoration -->

<plain-doc xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:dcterms="http://purl.org/dc/terms/"
           xmlns:dc="http://purl.org/dc/elements/1.1/"
           xmlns:db="http://www.oasis-open.org/docbook/xml/4.2/">
     <rdf:Description rdf:about="http://xep.xattic.com/testsuite/features/decoration.xml">
        <dc:title>  Basic Font Attributes - Font Decoration </dc:title>
        <dc:description>
          <db:para>
            Demonstrates text decoration attributes - underline, overline, 
            and strikethrough.
          </db:para>
        </dc:description>
        <dc:date>2003-07-24</dc:date><dcterms:requires rdf:resource="http://xep.xattic.com/testsuite/features/macro.xsl"/>
    </rdf:Description>
  </rdf:RDF> 


<define-macro name="decoration-test">
<p font-family="$arg" space-before="18pt">
  <p font-weight="bold"><u><arg/>:</u></p>
  <ul label="&#x2022;">
    <li> This is normal. </li>

    <li><fo:inline text-decoration="underline"> 
     This is underlined 
          <b>UNDERLINED</b>  
          <fo:inline text-decoration="no-underline">not underlined</fo:inline>
          <fo:inline baseline-shift="super">Underlined</fo:inline>
          <fo:inline font-style="italic" baseline-shift="sub">Underlined</fo:inline>.
    </fo:inline></li>

    <li><fo:inline text-decoration="overline"> 
     This is overlined 
          <b>OVERLINED</b>  
          <fo:inline text-decoration="no-overline">not overlined</fo:inline>
          <fo:inline baseline-shift="super">Overlined</fo:inline>
          <fo:inline font-style="italic" baseline-shift="sub">Overlined</fo:inline>.
    </fo:inline></li>

    <li><fo:inline text-decoration="line-through"> 
     This is struck-through 
          <b>STRUCK THROUGH</b>  
          <fo:inline text-decoration="no-line-through">not struck through</fo:inline>
          <fo:inline baseline-shift="super">Struck through</fo:inline>
          <fo:inline font-style="italic" baseline-shift="sub">Struck through</fo:inline>.
    </fo:inline></li>

    <li><fo:inline text-decoration="blink"> 
      this is BLINKING (if the media can support it), 
      <fo:inline text-decoration="no-blink"> 
        and this is not blinking even if the media can support it.
      </fo:inline>
    </fo:inline></li>

  </ul>
  <p space-before.optimum="6pt">
    <fo:inline keep-together.within-line="always"><b>Combined values:</b> this is normal,</fo:inline> 
    <fo:inline text-decoration="underline overline" keep-together.within-line="always"> 
      this is underlined &amp; overlined, 
      <fo:inline text-decoration="no-overline no-underline" keep-together.within-line="always"> 
        this is plain, 
      </fo:inline> 
    </fo:inline> 
    <fo:inline text-decoration="overline line-through" keep-together.within-line="always"> 
      this is overlined &amp; struck-through, 
      <fo:inline text-decoration="no-overline no-line-through" keep-together.within-line="always"> 
        this is plain, 
      </fo:inline> 
    </fo:inline> 
    <fo:inline text-decoration="line-through blink" keep-together.within-line="always"> 
      this is struck through &amp; blinking, 
      <fo:inline text-decoration="no-blink no-line-through" keep-together.within-line="always"> 
        this is plain, 
      </fo:inline> 
    </fo:inline> 
    <fo:inline text-decoration="underline overline line-through" keep-together.within-line="always">
      this is underlined &amp; overlined &amp; struck-through, 
      <fo:inline text-decoration="no-underline no-line-through no-overline" keep-together.within-line="always"> 
        and this is plain. 
      </fo:inline> 
    </fo:inline> 
  </p>
</p>
</define-macro>


<!-- =========================================================== -->
<!-- Document Body                                               -->  

<title>  Basic Font Attributes - Text Decoration </title>

<text>
 This text tests font decoration attributes -  underline, overline, 
 strikethrough, blink. Decoration values can be combined.
</text>
<warning>
  Blinking is not required for media/formats that cannot support it;
  absence of blinking <b> is not an error </b>
</warning>

 <macro name="decoration-test" arg="Times"/> 
 <macro name="decoration-test" arg="Helvetica"/>  
 <macro name="decoration-test" arg="Courier"/>  

</plain-doc>
