fix turtle
This commit is contained in:
parent
2bf81e2b70
commit
8f7dcd9cb4
1 changed files with 22 additions and 2 deletions
24
tortue.xsl
24
tortue.xsl
|
@ -51,6 +51,9 @@
|
||||||
<xsl:call-template name="Interpretation">
|
<xsl:call-template name="Interpretation">
|
||||||
<xsl:with-param name="data" select="$actuel" />
|
<xsl:with-param name="data" select="$actuel" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
|
<!-- DEBUG : Chaîne pas interprétée -->
|
||||||
|
<!-- <xsl:value-of select="$actuel" /> -->
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
@ -64,7 +67,24 @@
|
||||||
<xsl:analyze-string
|
<xsl:analyze-string
|
||||||
select="$data" regex=".">
|
select="$data" regex=".">
|
||||||
<xsl:matching-substring>
|
<xsl:matching-substring>
|
||||||
<xsl:value-of select="$substitution[@member = current()]" />
|
<xsl:variable name="sub" select="$substitution[@member = current()]" />
|
||||||
|
|
||||||
|
<xsl:choose>
|
||||||
|
<!-- Si pas de substitution trouvé, alors on renvoie le caractère
|
||||||
|
tel qu'il est -->
|
||||||
|
<!-- TODO: Est-ce la meilleur chose à faire ?
|
||||||
|
On pourrait dire que [ = [ et ] = ] dans le script python
|
||||||
|
et ainsi ça ouvrirais la porte à autoriser des substitution
|
||||||
|
vide -->
|
||||||
|
<xsl:when test="not($sub)">
|
||||||
|
<xsl:value-of select="current()" />
|
||||||
|
</xsl:when>
|
||||||
|
|
||||||
|
<!-- Sinon renvois sa substitution -->
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$sub" />
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:matching-substring>
|
</xsl:matching-substring>
|
||||||
</xsl:analyze-string>
|
</xsl:analyze-string>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
@ -115,7 +135,7 @@
|
||||||
<restore />
|
<restore />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<!-- Debug -->
|
<!-- DEBUG : Affichage des actions non-gérés -->
|
||||||
<!-- <xsl:otherwise>
|
<!-- <xsl:otherwise>
|
||||||
<action>
|
<action>
|
||||||
<xsl:value-of select="$interpretation[@member = current()]" />
|
<xsl:value-of select="$interpretation[@member = current()]" />
|
||||||
|
|
Reference in a new issue