Commit 349c6133 authored by Kapilraj Thangeswaran's avatar Kapilraj Thangeswaran

Ajout de l'introduction

parent fc427b0c
......@@ -8,6 +8,7 @@
<xsl:import href="subroutines/author.xsl"/>
<xsl:import href="subroutines/keyword.xsl"/>
<xsl:import href="subroutines/right.xsl"/>
<xsl:import href="subroutines/introduction.xsl"/>
<xsl:output method="text" encoding="UTF-8" omit-xml-declaration="yes"/>
......@@ -16,7 +17,8 @@
"title" : <xsl:call-template name="title-main"/>,
"authors" : <xsl:call-template name="author-main"/>,
"keywords" : <xsl:call-template name="keyword-main"/>,
"rights" : <xsl:call-template name="right-main"/>
"rights" : <xsl:call-template name="right-main"/>,
"introduction" : <xsl:call-template name="introduction-main"/>
}
</xsl:template>
......
<?xml version="1.0" encoding="UTF-8"?>
<?target hdoc/content.xml ?>
<xsl:stylesheet version="2.0" xpath-default-namespace="http://www.utc.fr/ics/hdoc/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h2m="http://www.utc.fr/hdoc/hdoc_to_mongo">
<xsl:import href="../xsl-import/string.xsl"/>
<xsl:template name="introduction-main">
<xsl:value-of select="h2m:escape-string(string-join(/html/body/section[@data-hdoc-type='introduction']/div/descendant::*/text(), ' '))"/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
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