1. tbrugz
  2. docbook-xsl-ufrgs-eco-tcc

Source

docbook-xsl-ufrgs-eco-tcc / xsl / html-tcc-eco.xsl

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:fo="http://www.w3.org/1999/XSL/Format" 
	xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
	xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
	xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"	
	version="1.0">

<!-- scaling attributes will be ignored for HTML output, see: http://www.sagehill.net/docbookxsl/ImageSizing.html -->
<xsl:param name="ignore.image.scaling">1</xsl:param>

<!-- ===================== revisăo, emphasis ============== -->

<!-- http://www.docbook.org/tdg/en/html/ref-elements.html#common.attributes -->
<!-- http://www.sagehill.net/docbookxsl/BordersAndShading.html -->

<xsl:template match="emphasis[@revisionflag = 'added']">
  <xsl:choose>
    <xsl:when test="$dbk.ufrgs.eco.marcaralteracoes != ''">
      <span style="background-color:yellow;">
        <xsl:apply-templates/> 
      </span>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<!-- XXX: prod/desenv... -->
<xsl:template match="emphasis[@revisionflag = 'changed']">
  <xsl:choose>
    <xsl:when test="$dbk.ufrgs.eco.marcaralteracoes != ''">
      <span style="background-color:yellow;">
        <xsl:apply-templates/> 
      </span>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>


<xsl:template match="emphasis[@role = 'note']">
	<xsl:choose>
	  <xsl:when test="$dbk.ufrgs.eco.mostrarnotas != ''">
      <span style="background-color:orange;">
		    <xsl:apply-templates/>
      	</span>
	  </xsl:when>
	  <xsl:otherwise/>
	</xsl:choose>
</xsl:template>

<xsl:template match="emphasis[@role = 'none']">
  <xsl:apply-templates/>
</xsl:template>

<!-- ====================================================== -->

</xsl:stylesheet>