diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-12-13 22:00:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-13 13:17:42 -0800 |
commit | a2bcbae4f3e387c5d8897e8ee5c5852a98410f87 (patch) | |
tree | 985be082ea41f649f95f965a7d124d1f751d9cd7 /xslt | |
parent | b694e960b74ef1662c459b791255818ef5601997 (diff) | |
download | subsurface-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')
-rw-r--r-- | xslt/uddf.xslt | 22 |
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 < 1"> + <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility < 1"> <xsl:value-of select="1"/> </xsl:when> - <xsl:when test="condition/visibility|informationafterdive/visibility <= 3"> + <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 3"> <xsl:value-of select="2"/> </xsl:when> - <xsl:when test="condition/visibility|informationafterdive/visibility <= 5"> + <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 5"> <xsl:value-of select="3"/> </xsl:when> - <xsl:when test="condition/visibility|informationafterdive/visibility <= 10"> + <xsl:when test="condition/visibility|informationafterdive/visibility|u:informationafterdive/u:visibility <= 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 < 2"> + <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue < 2"> <xsl:value-of select="0"/> </xsl:when> - <xsl:when test="informationafterdive/rating/ratingvalue <= 2"> + <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 2"> <xsl:value-of select="1"/> </xsl:when> - <xsl:when test="informationafterdive/rating/ratingvalue <= 4"> + <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 4"> <xsl:value-of select="2"/> </xsl:when> - <xsl:when test="informationafterdive/rating/ratingvalue <= 6"> + <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 6"> <xsl:value-of select="3"/> </xsl:when> - <xsl:when test="informationafterdive/rating/ratingvalue <= 8"> + <xsl:when test="informationafterdive/rating/ratingvalue|u:informationafterdive/u:rating/u:ratingvalue <= 8"> <xsl:value-of select="4"/> </xsl:when> <xsl:otherwise> |