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
355e15ff
Commit
355e15ff
authored
Dec 17, 2015
by
Antoine
Browse files
Merge branch 'master' of
https://gitlab.utc.fr/crozatst/hdoc
parents
3a3143ea
ff17acc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
mindmapping_to_hdoc/xslt/sect.xsl
View file @
355e15ff
...
...
@@ -27,7 +27,7 @@
<!-- Header in hdoc -->
<xsl:template
match=
"node[1]"
mode=
"header"
>
<title>
<xsl:value-of
select=
"@TEXT"
/>
<xsl:value-of
select=
"
utc:string-remove-order(
@TEXT
)
"
/>
<xsl:value-of
select=
"richcontent"
/>
</title>
<meta
charset=
"utf-8"
/>
...
...
@@ -39,7 +39,7 @@
<xsl:element
name=
"section"
>
<header>
<h1>
<xsl:value-of
select=
"@TEXT"
/>
<xsl:value-of
select=
"
utc:string-remove-order(
@TEXT
)
"
/>
<xsl:value-of
select=
"richcontent"
/>
</h1>
</header>
...
...
@@ -59,7 +59,7 @@
<!--Conclusion-->
<xsl:if
test=
"child::*[contains(@TEXT, '#conclu')]"
>
<xsl:element
name=
"section"
>
<header><h1>
Concluson
</h1></header>
<header><h1>
Conclus
i
on
</h1></header>
<footer>
<xsl:element
name=
"div"
>
<xsl:attribute
name=
"data-hdoc-type"
>
conclusion
</xsl:attribute>
...
...
@@ -84,7 +84,7 @@
</xsl:if>
<header>
<h1>
<xsl:value-of
select=
"@TEXT"
/>
<xsl:value-of
select=
"
utc:string-remove-order(
@TEXT
)
"
/>
<xsl:value-of
select=
"richcontent"
/>
</h1>
</header>
...
...
@@ -114,7 +114,7 @@
<xsl:template
match=
"node[contains(@TEXT, '#intro')] | node[contains(@TEXT, '#conclu')]"
priority=
"3"
/>
<xsl:template
match=
"richcontent"
>
<xsl:value-of
select=
"html/body/p"
/>
<xsl:value-of
select=
"
utc:string-remove-order(
html/body/p
)
"
/>
</xsl:template>
<!-- Utility functions -->
...
...
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