Commit 9f598be8 authored by lhommeni's avatar lhommeni

Gestion du listening pour hdoc_to_opale

parent 056ce809
*/input/
*/tmp/
*/output/
*/result/
*/wikipedia_to_hdoc/hdoc_to_opale/tmp/
\ No newline at end of file
wikipedia_to_hdoc/result/*
wikipedia_to_hdoc/tmp/*
wikipedia_to_hdoc/hdoc_to_opale/tmp/*
wikipedia_to_hdoc/output/*
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:h="http://www.utc.fr/ics/hdoc/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:op="utc.fr:ics/opale3"
xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
......@@ -574,6 +576,16 @@
</sp:int>
</xsl:template>
<!-- Listing Informatique-->
<xsl:param name="text-encoding" as="xs:string" select="'iso-8859-1'"/>
<xsl:param name="text-uri" as="xs:string" select="res/listing/listing1.txt"/>
<xsl:template match="h:object[@type='application/pdf']" priority="1">
<sp:listing>
<xsl:copy-of select="document(fn:concat('../tmp/decompressedHdoc/',@data))/sc:item/op:code"/>
</sp:listing>
</xsl:template>
<xsl:template match="h:section[h:div[@data-hdoc-type = 'question']]">
<!-- Selecting the first question -->
<sp:trainUcMcqMur>
......
......@@ -107,6 +107,6 @@
<!-- Delete tmp directory -->
<target name="clean">
<!-- <delete dir="${tmpFolderPath}"/>-->
<delete dir="${tmpFolderPath}"/>
</target>
</project>
......@@ -23,18 +23,18 @@
<antcall target="CleanDirectory"/>
<antcall target="UnzipHdocFile"/>
<!--<antcall target="ValidateInput" />-->
<antcall target="ValidateInput" />
<antcall target="FindContentFiles"/>
<ant antfile="${tmp}/generateContentPath.xml"/>
<!--<antcall target="ValidateOutput"/>-->
<antcall target="ValidateOutput"/>
<antcall target="DivideOutput"/>
<antcall target="ZipOutput"/>
<antcall target="ZipDividedOutput"/>
<!-- <antcall target="CleanDirectory"/>-->
<antcall target="CleanDirectory"/>
</target>
<target name="CleanDirectory">
......
......@@ -42,7 +42,7 @@
<param name="elementid" expression="{@data-export-id}"/>
</xslt>
<!-- <jing file="${{tmp}}/decompressedOpaleDivided/{@data-export-file}" rngfile="${{schema}}/op_expUc.rng"></jing>-->
<jing file="${{tmp}}/decompressedOpaleDivided/{@data-export-file}" rngfile="${{schema}}/op_expUc.rng"></jing>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment