Skip to content
GitLab
Menu
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
c48f0c4e
Commit
c48f0c4e
authored
Dec 21, 2015
by
Decorde Jeffrey
Browse files
Trycatch added for the jing tasks
parent
4560bda7
Changes
3
Hide whitespace changes
Inline
Side-by-side
hdoc_to_opale/hdoc_to_opale.ant
View file @
c48f0c4e
...
...
@@ -146,7 +146,14 @@
<sequential>
<local
name=
"filename"
/>
<basename
property=
"filename"
file=
"@{inputFile}"
/>
<jing
file=
"${tmp}/${filename}/decompressedHdoc/META-INF/container.xml"
rngfile=
"${schema}/hdoc1-container.rng"
></jing>
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"${tmp}/${filename}/decompressedHdoc/META-INF/container.xml"
rngfile=
"${schema}/hdoc1-container.rng"
></jing>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
</sequential>
</for>
</target>
...
...
@@ -160,7 +167,14 @@
<sequential>
<local
name=
"filename"
/>
<basename
property=
"filename"
file=
"@{inputFile}"
/>
<jing
file=
"${tmp}/${filename}/decompressedOpale/main.xml"
rngfile=
"${schema}/op_ue.rng"
></jing>
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"${tmp}/${filename}/decompressedOpale/main.xml"
rngfile=
"${schema}/op_ue.rng"
></jing>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
</sequential>
</for>
</target>
...
...
hdoc_to_opale/xsl/prepareCourseUcCopies.xsl
View file @
c48f0c4e
...
...
@@ -43,7 +43,14 @@
<param
name=
"elementid"
expression=
"{@data-export-id}"
/>
</xslt>
<jing
file=
"${{filename}}/decompressedOpaleDivided/{@data-export-file}"
rngfile=
"${{schema}}/op_expUc.rng"
></jing>
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"${{filename}}/decompressedOpaleDivided/{@data-export-file}"
rngfile=
"${{schema}}/op_expUc.rng"
></jing>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
</xsl:template>
</xsl:stylesheet>
hdoc_to_opale/xsl/transformation0.xsl
View file @
c48f0c4e
...
...
@@ -22,8 +22,14 @@
<xsl:template
match=
"c:rootfiles"
>
<target
name=
"start"
>
<jing
file=
"${{tmp}}/${{filename}}/decompressedHdoc/{c:rootfile/@full-path}"
rngfile=
"${{schema}}/hdoc1-xhtml.rng"
></jing>
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"${{tmp}}/${{filename}}/decompressedHdoc/{c:rootfile/@full-path}"
rngfile=
"${{schema}}/hdoc1-xhtml.rng"
></jing>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
<xslt
in=
"${{tmp}}/${{filename}}/decompressedHdoc/{c:rootfile/@full-path}"
out=
"${{tmp}}/${{filename}}/moveRessourceFiles.xml"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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