summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-13 22:00:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-13 13:17:42 -0800
commita2bcbae4f3e387c5d8897e8ee5c5852a98410f87 (patch)
tree985be082ea41f649f95f965a7d124d1f751d9cd7 /xslt/uddf.xslt
parentb694e960b74ef1662c459b791255818ef5601997 (diff)
downloadsubsurface-a2bcbae4f3e387c5d8897e8ee5c5852a98410f87.tar.gz
Include rating and visibility on uddf import
Adjust to UDDF 3.2 specification Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt22
1 files changed, 11 insertions, 11 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 7d9652303..37c7d4dd0 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -100,19 +100,19 @@
</xsl:attribute>
</xsl:if>
- <xsl:if test="condition/visibility|informationafterdive/visibility != '' and condition/visibility|informationafterdive/visibility != 0">
+ <xsl:if test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility != '' and condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility != 0">
<xsl:attribute name="visibility">
<xsl:choose>
- <xsl:when test="condition/visibility|informationafterdive/visibility &lt; 1">
+ <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility &lt; 1">
<xsl:value-of select="1"/>
</xsl:when>
- <xsl:when test="condition/visibility|informationafterdive/visibility &lt;= 3">
+ <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility &lt;= 3">
<xsl:value-of select="2"/>
</xsl:when>
- <xsl:when test="condition/visibility|informationafterdive/visibility &lt;= 5">
+ <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility &lt;= 5">
<xsl:value-of select="3"/>
</xsl:when>
- <xsl:when test="condition/visibility|informationafterdive/visibility &lt;= 10">
+ <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility &lt;= 10">
<xsl:value-of select="4"/>
</xsl:when>
<xsl:otherwise>
@@ -122,22 +122,22 @@
</xsl:attribute>
</xsl:if>
- <xsl:if test="informationafterdive/rating/ratingvalue != '' and informationafterdive/rating/ratingvalue != 0">
+ <xsl:if test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue != '' and informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue != 0">
<xsl:attribute name="rating">
<xsl:choose>
- <xsl:when test="informationafterdive/rating/ratingvalue &lt; 2">
+ <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue &lt; 2">
<xsl:value-of select="0"/>
</xsl:when>
- <xsl:when test="informationafterdive/rating/ratingvalue &lt;= 2">
+ <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue &lt;= 2">
<xsl:value-of select="1"/>
</xsl:when>
- <xsl:when test="informationafterdive/rating/ratingvalue &lt;= 4">
+ <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue &lt;= 4">
<xsl:value-of select="2"/>
</xsl:when>
- <xsl:when test="informationafterdive/rating/ratingvalue &lt;= 6">
+ <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue &lt;= 6">
<xsl:value-of select="3"/>
</xsl:when>
- <xsl:when test="informationafterdive/rating/ratingvalue &lt;= 8">
+ <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue &lt;= 8">
<xsl:value-of select="4"/>
</xsl:when>
<xsl:otherwise>