Commits

tbrugz  committed a92c97c

refatoração: agora todos estilos importam 'docbook-tcc-input-definitions.xsl' ; adicionado estilos html: html-tcc-eco.xsl

  • Participants
  • Parent commits 376341b

Comments (0)

Files changed (9)

 	<!-- fop properties -->
 	<property name="file.xmlinput" value="${srcfiles.dir}/docbook-tcc-input.xml"/>
 	<property name="csv-tables-dir" value="${srcfiles.dir}/tables-csv"/>
-	<property name="file.xsl" value="${xsl.dir}/docbook-tcc-input.xsl"/>
+	<property name="file.xsl" value="${xsl.dir}/docbook-fop-tcc-input.xsl"/>
 	<!-- property name="file-epub.xsl" value="${srcfiles.dir}/docbook-tcc-input-epub.xsl"/ --> <!-- not used... -->
 	<property name="file.pdfoutput" value="${dist}/tcc-output.pdf"/>
 	<property name="file.rtfoutput" value="${dist}/tcc-output.rtf"/>
 		    <arg value="-in"/>
 		    <arg value="${file.xmlinput}"/>
 		    <arg value="-xsl"/>
-		    <arg value="${docbook-xsl-dir}/epub/docbook.xsl"/>
+		    <!--arg value="${docbook-xsl-dir}/epub/docbook.xsl"/-->
+		    <arg value="${xsl.dir}/docbook-epub-tcc-input.xsl"/>
 		    <arg value="-out"/>
 		    <arg value="${file.epub.builddir}/tcc-output-epub.xml"/>
 		</java>
 		    <arg value="-in"/>
 		    <arg value="${file.xmlinput}"/>
 		    <arg value="-xsl"/>
-		    <arg value="${docbook-xsl-dir}/html/docbook.xsl"/>
+		    <arg value="${xsl.dir}/docbook-html-tcc-input.xsl"/>
+		    <!--arg value="${docbook-xsl-dir}/html/docbook.xsl"/-->
 		    <arg value="-out"/>
 		    <arg value="${file.html.output}"/>
 		</java>
 		    <arg value="-in"/>
 		    <arg value="${file.xmlinput}"/>
 		    <arg value="-xsl"/>
-		    <arg value="${docbook-xsl-dir}/html/chunk.xsl"/>
+		    <arg value="${xsl.dir}/docbook-htmlchunked-tcc-input.xsl"/>
 		    <arg value="-out"/>
 		    <arg value="${file.htmlchunked.outputdir}/index.html"/>
 		</java>
 		<echo message="runned"/>
 	</target>
 
-	<target name="run-env-check">
+	<target name="env-check">
 		<java classname="org.apache.xalan.xslt.EnvironmentCheck" classpathref="foppath" />
 
 		<available file="${file.xmlinput}" property="file.xmlinput.exists" />
 		<echo message="out-PDF: ${file.pdfoutput}" />
 		<echo message="out-RTF: ${file.rtfoutput}" />
 		<echo message="out-EPUB: ${file.epub.output}" />
+		<echo message="out-HTML: ${file.html.output}" />
+		<echo message="out-HTMLchunked: ${file.htmlchunked.outputdir}/index.html" />
 		<!--fail message="Files are missing.">
 			<condition>
 				<not>
 	
 	<target name="clean">
 		<delete includeemptydirs="true">
-			<fileset dir="${bin}"/>
+			<!--fileset dir="${bin}"/ -->
 			<fileset dir="${build}"/>
 			<fileset dir="${dist}"/>
 		</delete>
   - remover �ndices de in�cio de cap�tulos (n�o-chunked)
   - imagens com problemas?
 - epub: copiar para pasta de build somente figuras referenciadas pelo texto
+- ivy: baixar dependencias automaticamente
+- refacora��o: tcc-fop.xsl , tcc-fop-modifiedtemplates.xsl
+- docbook-css: nova sa�da?
+  - http://www.badgers-in-foil.co.uk/projects/docbook-css/
+  - http://www.cs.hs-rm.de/~werntges/proj/wysiwyg-dbk01.html
+  - http://www.linuxjournal.com/article/9090
+- CSS for HTML output
+  - http://wiki.docbook.org/DocBookCssStylesheets
+  - http://www.sagehill.net/docbookxsl/UsingCSS.html
+  - http://docbook.sourceforge.net/release/xsl-ns/current/doc/html/docbook.css.source.html
+- wordml output?
 - somente incluir refer�ncias apontadas pelo texto? bibtex-like? ver:
   - http://www.dpawson.co.uk/docbook/tools.html#d884e1198 - Formatting DocBook bibliographies
   - http://www.dpawson.co.uk/docbook/tools.html#d884e2317 - RefDB and JReference comparison

File xsl/docbook-epub-tcc-input.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" 
+	version="1.0">
+
+<xsl:import href="../../tcc-eco-docbook/docbook-xsl-1.76.1-RC1/epub/docbook.xsl"/>
+<xsl:import href="html-tcc-eco.xsl"/>
+<xsl:import href="docbook-tcc-input-definitions.xsl"/>
+
+</xsl:stylesheet>

File xsl/docbook-fop-tcc-input.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" 
+	version="1.0">
+
+<!-- xsl:import href="../../tcc-eco-docbook/docbook-xsl-1.76.1-RC1/fo/docbook.xsl"/ -->
+<xsl:import href="tcc-eco.xsl"/>
+<xsl:import href="docbook-tcc-input-definitions.xsl"/>
+
+</xsl:stylesheet>

File xsl/docbook-html-tcc-input.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" 
+	version="1.0">
+
+<xsl:import href="../../tcc-eco-docbook/docbook-xsl-1.76.1-RC1/html/docbook.xsl"/>
+<xsl:import href="html-tcc-eco.xsl"/>
+<xsl:import href="docbook-tcc-input-definitions.xsl"/>
+
+</xsl:stylesheet>

File xsl/docbook-htmlchunked-tcc-input.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" 
+	version="1.0">
+
+<xsl:import href="../../tcc-eco-docbook/docbook-xsl-1.76.1-RC1/html/chunk.xsl" />
+<xsl:import href="html-tcc-eco.xsl"/>
+<xsl:import href="docbook-tcc-input-definitions.xsl"/>
+
+</xsl:stylesheet>

File xsl/docbook-tcc-input-definitions.template.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" 
+	version="1.0">
+
+<!--
+dbk.ufrgs.eco.versao: "digital" ou "impressao" - vers�o digital bota links externos em azul
+dbk.ufrgs.eco.marcaralteracoes: "<qqr coisa>" ou "" - mostra altera��es '<emphasis revisionflag="changed">' e '<emphasis revisionflag="added">' com fundo amarelo
+dbk.ufrgs.eco.mostrarnotas: "<qqr coisa>" ou "" - mostra ou n�o notas '<emphasis role="note">'
+ -->
+<xsl:param name="dbk.ufrgs.eco.versao">digital</xsl:param> <!-- ou: impressao --> 
+<xsl:param name="dbk.ufrgs.eco.marcaralteracoes">x</xsl:param> <!-- "x" ou vazio -->
+<xsl:param name="dbk.ufrgs.eco.mostrarnotas">x</xsl:param> <!-- "x" ou vazio -->
+
+</xsl:stylesheet>

File xsl/docbook-tcc-input.template.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" 
-	version="1.0">
-
-<!-- xsl:import href="../../tcc-eco-docbook/docbook-xsl-1.76.1-RC1/fo/docbook.xsl"/ -->
-<xsl:import href="tcc-eco.xsl"/>
-
-<xsl:param name="dbk.ufrgs.eco.versao">digital</xsl:param> <!-- ou: impressao --> 
-<xsl:param name="dbk.ufrgs.eco.marcaralteracoes">x</xsl:param> <!-- "x" ou vazio -->
-<xsl:param name="dbk.ufrgs.eco.mostrarnotas">x</xsl:param> <!-- "x" ou vazio -->
-
-</xsl:stylesheet>

File 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">
+
+<!-- ===================== 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>