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
1c283491
Commit
1c283491
authored
Jan 08, 2017
by
Raphaël
Browse files
Instructions for content.xml and container.xml validation suitable for opale_to_pdf
parent
04b3fbfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
hdoc_to_pdf/hdoc_to_pdf.ant
View file @
1c283491
...
...
@@ -6,11 +6,11 @@
<pathelement
location=
"lib/ant-contrib.jar"
/>
</classpath>
</taskdef>
<!--
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<taskdef
name=
"jing"
classname=
"com.thaiopensource.relaxng.util.JingTask"
>
<classpath>
<pathelement
location=
"lib/jing.jar"
/>
</classpath>
</taskdef>
-->
</taskdef>
<!-- Arguments properties -->
<property
name=
"InputPath"
location=
"input"
/>
...
...
@@ -70,14 +70,15 @@
<chmod
dir=
"${tmpdir}"
perm=
"777"
/>
<!-- Validating the XML container file -->
<!--
<trycatch property="foo" reference="bar">
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"${tmpdir}/META-INF/container.xml"
rngfile=
"${Schema}/container/hdoc1-container.rng"
></jing>
<echo>
Validation container.xml ok !
</echo>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
-->
</trycatch>
<!-- Launches the XSLT find_content to retrieve the content path -->
<xslt
in=
"${tmpdir}/META-INF/container.xml"
out=
"${tmpdir}/prepare_hdoc.ant"
classpath=
"./lib/saxon9he.jar"
style=
"xsl/find_content.xsl"
>
...
...
hdoc_to_pdf/xsl/find_content.xsl
View file @
1c283491
...
...
@@ -14,11 +14,11 @@
<project
name=
"hdoc_to_pdf"
basedir=
".."
default=
"main"
>
<property
name=
"lib"
location=
"lib"
/>
<property
name=
"Schema"
location=
"schemas"
/>
<!--
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<taskdef
name=
"jing"
classname=
"com.thaiopensource.relaxng.util.JingTask"
>
<classpath>
<pathelement location="
${
lib
}
/jing.jar"/>
<pathelement
location=
"lib/jing.jar"
/>
</classpath>
</taskdef>
-->
</taskdef>
<target
name=
"main"
>
<xsl:apply-templates/>
</target>
...
...
@@ -48,14 +48,15 @@
<echo
message=
"Filename : {$filename}"
/>
<echo
message=
"Dirpath : {$dirpath}"
/>
<!--
<trycatch property="foo" reference="bar">
<trycatch
property=
"foo"
reference=
"bar"
>
<try>
<jing
file=
"{$TempDirectory}/{$path}"
rngfile=
"${{Schema}}/xhtml/hdoc1-xhtml.rng"
></jing>
<echo>
Validation content.xml ok !
</echo>
</try>
<catch>
<echo>
Validation failed
</echo>
</catch>
</trycatch>
-->
</trycatch>
<copy
file=
"{$BaseDirectory}/css/main.css"
tofile=
"{$dirpath}/main.css"
/>
<copy
file=
"{$BaseDirectory}/font/cmunrm.ttf"
tofile=
"{$dirpath}/cmunrm.ttf"
/>
...
...
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