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
349c6133
Commit
349c6133
authored
Dec 18, 2016
by
Kapilraj Thangeswaran
Browse files
Ajout de l'introduction
parent
fc427b0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
hdoc_to_mongo/xsl/main.xsl
View file @
349c6133
...
...
@@ -8,6 +8,7 @@
<xsl:import
href=
"subroutines/author.xsl"
/>
<xsl:import
href=
"subroutines/keyword.xsl"
/>
<xsl:import
href=
"subroutines/right.xsl"
/>
<xsl:import
href=
"subroutines/introduction.xsl"
/>
<xsl:output
method=
"text"
encoding=
"UTF-8"
omit-xml-declaration=
"yes"
/>
...
...
@@ -16,7 +17,8 @@
"title" :
<xsl:call-template
name=
"title-main"
/>
,
"authors" :
<xsl:call-template
name=
"author-main"
/>
,
"keywords" :
<xsl:call-template
name=
"keyword-main"
/>
,
"rights" :
<xsl:call-template
name=
"right-main"
/>
"rights" :
<xsl:call-template
name=
"right-main"
/>
,
"introduction" :
<xsl:call-template
name=
"introduction-main"
/>
}
</xsl:template>
...
...
hdoc_to_mongo/xsl/subroutines/introduction.xsl
0 → 100644
View file @
349c6133
<?xml version="1.0" encoding="UTF-8"?>
<?target hdoc/content.xml ?>
<xsl:stylesheet
version=
"2.0"
xpath-default-namespace=
"http://www.utc.fr/ics/hdoc/xhtml"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:h2m=
"http://www.utc.fr/hdoc/hdoc_to_mongo"
>
<xsl:import
href=
"../xsl-import/string.xsl"
/>
<xsl:template
name=
"introduction-main"
>
<xsl:value-of
select=
"h2m:escape-string(string-join(/html/body/section[@data-hdoc-type='introduction']/div/descendant::*/text(), ' '))"
/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
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