Commit 9f598be8 authored by lhommeni's avatar lhommeni

Gestion du listening pour hdoc_to_opale

parent 056ce809
*/input/ */input/
*/tmp/ */tmp/
*/output/ */output/
*/result/ wikipedia_to_hdoc/result/*
*/wikipedia_to_hdoc/hdoc_to_opale/tmp/ wikipedia_to_hdoc/tmp/*
\ No newline at end of file wikipedia_to_hdoc/hdoc_to_opale/tmp/*
wikipedia_to_hdoc/output/*
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet <xsl:stylesheet
xmlns:h="http://www.utc.fr/ics/hdoc/xhtml" 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:sc="http://www.utc.fr/ics/scenari/v3/core"
xmlns:op="utc.fr:ics/opale3" xmlns:op="utc.fr:ics/opale3"
xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:fn="http://www.w3.org/2005/xpath-functions" 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"/> <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
...@@ -573,6 +575,16 @@ ...@@ -573,6 +575,16 @@
<op:instructionM/> <op:instructionM/>
</sp:int> </sp:int>
</xsl:template> </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']]"> <xsl:template match="h:section[h:div[@data-hdoc-type = 'question']]">
<!-- Selecting the first question --> <!-- Selecting the first question -->
......
...@@ -107,6 +107,6 @@ ...@@ -107,6 +107,6 @@
<!-- Delete tmp directory --> <!-- Delete tmp directory -->
<target name="clean"> <target name="clean">
<!-- <delete dir="${tmpFolderPath}"/>--> <delete dir="${tmpFolderPath}"/>
</target> </target>
</project> </project>
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
<antcall target="CleanDirectory"/> <antcall target="CleanDirectory"/>
<antcall target="UnzipHdocFile"/> <antcall target="UnzipHdocFile"/>
<!--<antcall target="ValidateInput" />--> <antcall target="ValidateInput" />
<antcall target="FindContentFiles"/> <antcall target="FindContentFiles"/>
<ant antfile="${tmp}/generateContentPath.xml"/> <ant antfile="${tmp}/generateContentPath.xml"/>
<!--<antcall target="ValidateOutput"/>--> <antcall target="ValidateOutput"/>
<antcall target="DivideOutput"/> <antcall target="DivideOutput"/>
<antcall target="ZipOutput"/> <antcall target="ZipOutput"/>
<antcall target="ZipDividedOutput"/> <antcall target="ZipDividedOutput"/>
<!-- <antcall target="CleanDirectory"/>--> <antcall target="CleanDirectory"/>
</target> </target>
<target name="CleanDirectory"> <target name="CleanDirectory">
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<param name="elementid" expression="{@data-export-id}"/> <param name="elementid" expression="{@data-export-id}"/>
</xslt> </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:template>
</xsl:stylesheet> </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