<?xml version="1.0"?>
<!-- ============================================================ -->
<!--                                                              -->
<!-- 	This file makes a part of RenderX XSL Test Suite          -->
<!--                                                              -->
<!--    Author: Alexander Peshkov                                 -->
<!--                                                              -->
<!--    (c) RenderX, 2003                                         -->
<!--                                                              -->
<!-- ============================================================ -->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                			  xmlns:fo="http://www.w3.org/1999/XSL/Format"
                			  xmlns:rx="http://www.renderx.com/XSL/Extensions">

	<xsl:import href="generic.xsl"/>
	
	<xsl:output indent="yes"/>

	<xsl:template match="dropcap">
		<fo:float float="start">
		  <xsl:choose>
		    <xsl:when test="@image">
		      <fo:block>
		        <fo:external-graphic>
		  		  <xsl:attribute name="src">url('<xsl:value-of select="@image"/>')</xsl:attribute>
		  	    </fo:external-graphic>
		  	  </fo:block>
		  	</xsl:when>
		  	<xsl:otherwise>
		  	  <fo:block margin="0pt"
				        color="red"
				        text-depth="0pt"
				        font-size="62pt"
				        line-height="40pt"
				        font-weight="bold"
				        font-family="Courier">
		  	    <xsl:value-of select="."/>
		  	  </fo:block>
		  	</xsl:otherwise>
		  </xsl:choose>
		</fo:float>
	</xsl:template>
</xsl:stylesheet>