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

Added #p + #a working

parent b12bebd8
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
<xsl:template match="node[1]" mode="header"> <xsl:template match="node[1]" mode="header">
<title> <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> </title>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<meta name="author" content=""/> <meta name="author" content=""/>
...@@ -46,11 +47,11 @@ ...@@ -46,11 +47,11 @@
<!-- Behavior when node has no children --> <!-- Behavior when node has no children -->
<xsl:template <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"> priority="1">
<xd:doc xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"> <xd:doc xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl">
<xd:desc> <xd:desc>
<xd:p></xd:p> <xd:p/>
</xd:desc> </xd:desc>
</xd:doc> </xd:doc>
<xsl:element name="section"> <xsl:element name="section">
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
<xsl:value-of select="richcontent"/> <xsl:value-of select="richcontent"/>
</h1> </h1>
</header> </header>
<!--<xsl:apply-templates/>--> <xsl:apply-templates/>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
...@@ -90,12 +91,13 @@ ...@@ -90,12 +91,13 @@
<xsl:function name="utc:string-remove-all" as="xs:string"> <xsl:function name="utc:string-remove-all" as="xs:string">
<xsl:param name="text" as="xs:string"/> <xsl:param name="text" as="xs:string"/>
<xsl:param name="replace" as="xs:string"/> <xsl:param name="replace" as="xs:string"/>
<!-- <xsl:variable name="ret">
<xsl:call-template name="string-remove-all"> <xsl:call-template name="string-remove-all">
<xsl:with-param name="text" select="$text" /> <xsl:with-param name="text" select="$text"/>
<xsl:with-param name="replace" select="$replace" /> <xsl:with-param name="replace" select="$replace"/>
</xsl:call-template>--> </xsl:call-template>
<xsl:value-of select="$text"/> </xsl:variable>
<xsl:value-of select="$ret"></xsl:value-of>
</xsl:function> </xsl:function>
<xsl:template name="string-remove-all"> <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