Commit fb21fb0e authored by Baptiste Montange's avatar Baptiste Montange

Merge branch 'master' of ssh://gitlab.utc.fr/crozatst/hdoc

parents 583e873c c34d9528
<project name="hdoc_to_optim" default="unzipSource">
<project name="hdoc_to_optim" default="main">
<property file="build.properties"/>
......@@ -22,9 +22,11 @@
<unzip dest="${hdocdir}" src ="${hdocFilePath}"/>
</target>
<target name="main" depends="unzipSource">
<xslt in="${hdocdir}/content.xml" out="${outputPath}/result.json" style="xsl/main.xsl"/>
</target>
<target name="clean" depends="unzipSource">
<delete file="get_content.ant"/>
<delete file="get_ressources.ant"/>
<delete dir="${hdocdir}" />
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xpath-default-namespace="http://www.utc.fr/ics/hdoc/xhtml"
exclude-result-prefixes="xs"
version="2.0">
<xsl:import href="subroutines/title.xsl"/>
<xsl:import href="subroutines/author.xsl"/>
<xsl:import href="subroutines/keyword.xsl"/>
<xsl:import href="subroutines/right.xsl"/>
<xsl:output method="text" encoding="UTF-8" omit-xml-declaration="yes"/>
<xsl:template match="/">
{
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"/>,
}
</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