<?xml version="1.0" encoding="UTF-8"?>
<!-- Xsl Style sheet auto generated-->
<!-- 	Author: Anne Vikhrova	   -->
<!-- 			December 2015	   -->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="html" encoding="utf-8" indent="no"/>

	<xsl:strip-space elements="*"/>

	<xsl:template match="@*|node()">
		<xsl:copy>   
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>

	<xsl:template match="paragraphe_introduction">
	    <span class="paragraphe_introduction">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="entree_chronologie">
	    <span class="entree_chronologie">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="entree_bibliographie">
	    <span class="entree_bibliographie">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="italique|gras|souligne|barre|exposant|petites_capitales|petit|grand">
		<span>
			<xsl:attribute name="class">
				<xsl:value-of select="name()"/>
			</xsl:attribute>
			<xsl:apply-templates select="node()"/>
		</span>
	</xsl:template>

	<xsl:template match="appel_original">
		<span class="appel_original">
			<xsl:apply-templates select="node()"/>
		</span>
	</xsl:template>

	<xsl:template match="note_originale">
		<span class="note_originale">
			<xsl:apply-templates select="node()"/>
		</span>
	</xsl:template>

	<xsl:template match="introduction">
	    <span class="introduction">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="chronologie">
	    <span class="chronologie">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="bibliographie">
	    <span class="bibliographie">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="edition_critique">
		<span class="edition_critique">
			<xsl:text>&#xA;&#09;</xsl:text>
	        <xsl:apply-templates select="node()"/>
			<xsl:text>&#xA;</xsl:text>
	    </span>
	</xsl:template>

	<xsl:template match="corps_de_texte">
	    <span class="corps_de_texte">
	        <xsl:apply-templates select="node()"/>
	    	<xsl:text>&#xA;&#09;</xsl:text>
	    </span>
	</xsl:template>

	<xsl:template match="titre">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
	    <span class="titre">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="p">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
	    <p>
	    	<xsl:if test="@alignement">
	    		<xsl:attribute name="class">
	    			<xsl:value-of select="@alignement"/>
	    		</xsl:attribute>
	    	</xsl:if>
	        <xsl:apply-templates select="node()"/>
	    </p>
	</xsl:template>

	<xsl:template match="nouvelle_ligne">
	    <br/>
	</xsl:template>

	<xsl:template match="sous-titre">
		<xsl:text>&#xA;&#09;&#09;</xsl:text>
		<span class="sous-titre">
	        <xsl:apply-templates select="node()"/>
		</span>
	</xsl:template>

	<xsl:template match="aligne_droite">
	    <span class="aligne_droite">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="citation">
	    <span class="citation">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="img">
	    <span class="img">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="table">
	    <span class="table">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="tr">
	    <span class="tr">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

	<xsl:template match="td">
	    <span class="td">
	        <xsl:apply-templates select="node()"/>
	    </span>
	</xsl:template>

</xsl:stylesheet>