Commit cc729deb authored by Ivan D'halluin's avatar Ivan D'halluin

clean formating

parent d2da4eb9
......@@ -13,7 +13,6 @@ Todo list
- resolve bugs
- the level of unit of content for the Opal conversion if basically set to sections witch doesn't contains any section but some could need it to be set to another level. Create a selection of this level could be a next step for this project.
Bugs
----
......
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:of="scpf.org:office"
xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive"
xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
......@@ -17,8 +17,8 @@
<xsl:apply-templates select="node()|@*">
<xsl:with-param name="src" select="$src"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<xsl:template match="/">
<xsl:variable name="src"><xsl:value-of select="$currentDir"/>/</xsl:variable>
......@@ -26,8 +26,8 @@
<xsl:apply-templates select="node()|@*">
<xsl:with-param name="src" select="$src"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<xsl:template match="sp:main[@sc:refUri]" priority="1">
<xsl:param name="src" />
......@@ -52,7 +52,7 @@
<xsl:template match="sp:sec[@sc:refUri]" priority="1">
<xsl:param name="src" />
<xsl:variable name="refUri" select="@sc:refUri" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refUriWithoutLastPart">
<xsl:call-template name="removeLastPart">
<xsl:with-param name="value" select="$refUri" />
......@@ -70,7 +70,7 @@
<xsl:template match="sp:subPage[@sc:refUri]" priority="1">
<xsl:param name="src" />
<xsl:variable name="refUri" select="@sc:refUri" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refUriWithoutLastPart">
<xsl:call-template name="removeLastPart">
<xsl:with-param name="value" select="$refUri" />
......@@ -88,7 +88,7 @@
<xsl:template match="sp:page[@sc:refUri]" priority="1">
<xsl:param name="src" />
<xsl:variable name="refUri" select="@sc:refUri" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refUriWithoutLastPart">
<xsl:call-template name="removeLastPart">
<xsl:with-param name="value" select="$refUri" />
......@@ -108,7 +108,7 @@
<xsl:template match="sp:frag" priority="1">
<xsl:param name="src" />
<xsl:variable name="refUri" select="@sc:refUri" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="totalUri">
<xsl:value-of select="concat($src, $refUri)" />
</xsl:variable>
......@@ -128,7 +128,6 @@
<xsl:with-param name="src" select="$totalUri"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="sc:uLink[@role='ref' and contains(@sc:refUri, '.section')]" priority="2">
<xsl:param name="src" />
......@@ -191,7 +190,7 @@
<xsl:template match="sp:gallery[@sc:refUri]">
<xsl:param name="src" />
<xsl:variable name="refUri" select="@sc:refUri" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refDoc" select="document($refUri)" />
<xsl:variable name="refUriWithoutLastPart">
<xsl:call-template name="removeLastPart">
<xsl:with-param name="value" select="$refUri" />
......@@ -239,8 +238,8 @@
<xsl:apply-templates select="node()|@*">
<xsl:with-param name="src" select="$src"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:copy>
</xsl:template>
<!--Retracer le bon lien pour tous les refUri...-->
......
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