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
7aef6932
Commit
7aef6932
authored
Jan 05, 2017
by
Baptiste Montange
Browse files
change xsl to english
parent
9e60a374
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_basex/xsl/transformation.xsl
View file @
7aef6932
...
...
@@ -10,9 +10,9 @@
</xsl:template>
<xsl:template
match=
"h:head"
mode=
"title"
>
<tit
r
e>
<tit
l
e>
<xsl:value-of
select=
"./h:title"
/>
</tit
r
e>
</tit
l
e>
<xsl:apply-templates
select=
"./h:meta"
/>
</xsl:template>
...
...
@@ -44,29 +44,32 @@
<xsl:template
match=
"h:section"
>
<section>
<titresection>
<typesection>
<xsl:value-of
select=
"@data-hdoc-type"
/>
</typesection>
<titlesection>
<xsl:value-of
select=
"./h:header/h:h1"
/>
</titresection>
<contenu>
<paragraphes>
</titlesection>
<content>
<paragraphs>
<xsl:apply-templates
select=
"h:div"
/>
</paragraph
e
s>
</paragraphs>
<xsl:apply-templates
select=
"h:section"
mode=
"soussect"
/>
</conten
u
>
</conten
t
>
</section>
</xsl:template>
<xsl:template
match=
"h:section"
mode=
"soussect"
>
<soussection></soussection>
</xsl:template>
<xsl:template
match=
"h:div"
>
<xsl:if
test=
"h:p"
>
<paragraph
e
>
<paragraph>
<xsl:value-of
select=
"."
/>
</paragraph
e
>
</paragraph>
</xsl:if>
<xsl:if
test=
"h:ul"
>
<xsl:apply-templates
select=
"h:ul"
></xsl:apply-templates>
...
...
@@ -75,9 +78,9 @@
</xsl:template>
<xsl:template
match=
"h:ul"
>
<xsl:for-each
select=
"h:li"
>
<paragraph
e
>
<paragraph>
<xsl:value-of
select=
"h:p"
/>
</paragraph
e
>
</paragraph>
</xsl:for-each>
</xsl:template>
...
...
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