Commit 678d6f3e authored by Fremondiere Bastien's avatar Fremondiere Bastien

Added #p + #a working

parent b12bebd8
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment