Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
9f598be8
Commit
9f598be8
authored
Dec 15, 2015
by
lhommeni
Browse files
Gestion du listening pour hdoc_to_opale
parent
056ce809
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
9f598be8
*/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
hdoc_to_opale/xsl/transformation2.xsl
View file @
9f598be8
<?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"
/>
...
...
@@ -573,6 +575,16 @@
<op:instructionM/>
</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 -->
...
...
wikipedia_to_hdoc/ant/wiki_to_hdoc_fetcher.ant
View file @
9f598be8
...
...
@@ -107,6 +107,6 @@
<!-- Delete tmp directory -->
<target
name=
"clean"
>
<!--
<delete dir="${tmpFolderPath}"/>
-->
<delete
dir=
"${tmpFolderPath}"
/>
</target>
</project>
wikipedia_to_hdoc/hdoc_to_opale/myantce.ant
View file @
9f598be8
...
...
@@ -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"
>
...
...
wikipedia_to_hdoc/hdoc_to_opale/xsl/prepareCourseUcCopies.xsl
View file @
9f598be8
...
...
@@ -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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment