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
b0d00aac
Commit
b0d00aac
authored
Jan 01, 2017
by
Kapilraj Thangeswaran
Browse files
Modification fonctionnement config.xsl et ajout samples
parent
39ac0e3b
Changes
16
Hide whitespace changes
Inline
Side-by-side
hdoc_to_mongo/README.md
View file @
b0d00aac
...
...
@@ -36,7 +36,7 @@ Supported information
```
<?xml version="1.0" encoding="UTF-8"?>
<config>
<file
titl
e=
'sample.
hdoc
'
>
<file
nam
e=
'sample.
scar
'
>
<link>
https://stph.scenari-community.org/nf17/co/nf17.html
</link>
</file>
</config>
...
...
hdoc_to_mongo/hdoc_to_mongo.ant
View file @
b0d00aac
...
...
@@ -49,7 +49,7 @@
<echo>Convert ${inputPath}/${file}</echo>
<basename property="basename" file="${inputPath}/${file}" suffix=".hdoc"/>
<xslt in="${tmpdir}/content.xml" out="${outputPath}/${basename}.json" style="xsl/main.xsl">
<param name="file" expression="${
fil
e}"/>
<param name="file
Name
" expression="${
basenam
e}"/>
<param name="inputPath" expression="${inputPath}"/>
</xslt>
</target>
...
...
hdoc_to_mongo/samples/alg1_2016-12-12.scar.hdoc
0 → 100644
View file @
b0d00aac
File added
hdoc_to_mongo/samples/config.xml
0 → 100644
View file @
b0d00aac
<?xml version="1.0" encoding="UTF-8"?>
<config>
<file
name=
'alg1_2016-12-12.scar'
>
<link>
https://stph.scenari-community.org/nf17/co/nf17.html
</link>
</file>
</config>
\ No newline at end of file
hdoc_to_mongo/samples/lapp1_2016-12-12.scar.hdoc
0 → 100644
View file @
b0d00aac
File added
hdoc_to_mongo/samples/mod1_2016-12-12.scar.hdoc
0 → 100644
View file @
b0d00aac
File added
hdoc_to_mongo/samples/mod2_2016-12-12.scar.hdoc
0 → 100644
View file @
b0d00aac
File added
hdoc_to_mongo/xsl/main.xsl
View file @
b0d00aac
...
...
@@ -14,13 +14,13 @@
<xsl:output
method=
"text"
encoding=
"UTF-8"
omit-xml-declaration=
"yes"
/>
<xsl:param
name=
"file"
required=
"yes"
as=
"xs:string"
/>
<xsl:param
name=
"file
Name
"
required=
"yes"
as=
"xs:string"
/>
<xsl:param
name=
"inputPath"
required=
"yes"
as=
"xs:string"
/>
<xsl:template
match=
"/"
>
{
<xsl:call-template
name=
"config-main"
>
<xsl:with-param
name=
"file"
><xsl:value-of
select=
"$file"
/></xsl:with-param>
<xsl:with-param
name=
"file
Name
"
><xsl:value-of
select=
"$file
Name
"
/></xsl:with-param>
<xsl:with-param
name=
"inputPath"
><xsl:value-of
select=
"$inputPath"
/></xsl:with-param>
</xsl:call-template>
"title" :
<xsl:call-template
name=
"title-main"
/>
,
...
...
hdoc_to_mongo/xsl/subroutines/config.xsl
View file @
b0d00aac
...
...
@@ -4,10 +4,9 @@
xmlns:h2m=
"http://www.utc.fr/hdoc/hdoc_to_mongo"
>
<xsl:import
href=
"../xsl-import/string.xsl"
/>
<xsl:template
name=
"config-main"
>
<xsl:param
name=
"file"
/>
<xsl:param
name=
"file
Name
"
/>
<xsl:param
name=
"inputPath"
/>
"link" :
<xsl:value-of
select=
"h2m:escape-string(document('C:\Users\Kapil\Documents\Projets\github\hdoc\hdoc_to_mongo/input/config.xml')/config/file[@title = $file]/link)"
/>
,
"link" :
<xsl:value-of
select=
"h2m:escape-string(document('C:\Users\Kapil\Documents\Projets\github\hdoc\hdoc_to_mongo/input/config.xml')/config/file[@name = $fileName]/link)"
/>
,
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
opale_to_mongo/README.md
View file @
b0d00aac
...
...
@@ -26,14 +26,14 @@ In order to work properly this module needs
5.
Execute run.bat or run.sh
## Input configuration
You can add or edit "config.xml" in "input" folder
in order
to provide more information about your documents.
You can add or edit "config.xml" in "input" folder to provide more information about your documents.
Supported information
-
link
```
<?xml version="1.0" encoding="UTF-8"?>
<config>
<file
titl
e=
'sample.
hdoc
'
>
<file
nam
e=
'sample.
scar
'
>
<link>
https://stph.scenari-community.org/nf17/co/nf17.html
</link>
</file>
</config>
...
...
opale_to_mongo/opale_to_mongo.ant
View file @
b0d00aac
...
...
@@ -23,6 +23,7 @@
<copy todir="${inputHdocToMongo}">
<fileset dir="${outputOpaleToHdoc}"/>
</copy>
<copy file="${inputPath}/config.xml" todir="${inputHdocToMongo}"/>
<copy todir="${nodeModulesHdocToMongo}">
<fileset dir="${nodeModules}"/>
</copy>
...
...
opale_to_mongo/samples/alg1_2016-12-12.scar
0 → 100644
View file @
b0d00aac
File added
opale_to_mongo/samples/config.xml
0 → 100644
View file @
b0d00aac
<?xml version="1.0" encoding="UTF-8"?>
<config>
<file
name=
'alg1_2016-12-12.scar'
>
<link>
https://stph.scenari-community.org/nf17/co/nf17.html
</link>
</file>
</config>
\ No newline at end of file
opale_to_mongo/samples/lapp1_2016-12-12.scar
0 → 100644
View file @
b0d00aac
File added
opale_to_mongo/samples/mod1_2016-12-12.scar
0 → 100644
View file @
b0d00aac
File added
opale_to_mongo/samples/mod2_2016-12-12.scar
0 → 100644
View file @
b0d00aac
File added
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