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
678d6f3e
Commit
678d6f3e
authored
Dec 13, 2015
by
Bastien FREMONDIERE
Browse files
Added #p + #a working
parent
b12bebd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
mindmapping_to_hdoc/xslt/sect.xsl
View file @
678d6f3e
...
...
@@ -25,7 +25,8 @@
<xsl:template
match=
"node[1]"
mode=
"header"
>
<title>
<xsl:value-of
select=
"@TEXT"
/><xsl:value-of
select=
"richcontent"
></xsl:value-of>
<xsl:value-of
select=
"@TEXT"
/>
<xsl:value-of
select=
"richcontent"
/>
</title>
<meta
charset=
"utf-8"
/>
<meta
name=
"author"
content=
""
/>
...
...
@@ -46,11 +47,11 @@
<!-- Behavior when node has no children -->
<xsl:template
match=
"node[not(node)]|node[contains(
//
@TEXT, '#p')]|node[contains(
//
@TEXT, '#a')]"
match=
"node[not(node)]|node[
child::*[
contains(@TEXT, '#p')]
]
|node[
child::*[
contains(@TEXT, '#a')]
]
"
priority=
"1"
>
<xd:doc
xmlns:xd=
"http://www.oxygenxml.com/ns/doc/xsl"
>
<xd:desc>
<xd:p
></xd:p
>
<xd:p
/
>
</xd:desc>
</xd:doc>
<xsl:element
name=
"section"
>
...
...
@@ -61,7 +62,7 @@
<xsl:value-of
select=
"richcontent"
/>
</h1>
</header>
<!--
<xsl:apply-templates/>
-->
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
...
...
@@ -90,12 +91,13 @@
<xsl:function
name=
"utc:string-remove-all"
as=
"xs:string"
>
<xsl:param
name=
"text"
as=
"xs:string"
/>
<xsl:param
name=
"replace"
as=
"xs:string"
/>
<!--
<xsl:call-template name="string-remove-all">
<xsl:with-param name="text" select="$text" />
<xsl:with-param name="replace" select="$replace" />
</xsl:call-template>-->
<xsl:value-of
select=
"$text"
/>
<xsl:variable
name=
"ret"
>
<xsl:call-template
name=
"string-remove-all"
>
<xsl:with-param
name=
"text"
select=
"$text"
/>
<xsl:with-param
name=
"replace"
select=
"$replace"
/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of
select=
"$ret"
></xsl:value-of>
</xsl:function>
<xsl:template
name=
"string-remove-all"
>
...
...
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