summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-03-19 20:07:04 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-03-19 20:14:44 +0100
commiteb978f2f8388d0c35a7ef70a344444dbcc90bb73 (patch)
tree74c71a22312d83cfc2a539216f24e6d20b38fb91
parent4fd41f2b0656519ed6511f68cf94ae65d19323f7 (diff)
downloadontogen-eb978f2f8388d0c35a7ef70a344444dbcc90bb73.tar.gz
ontogen-eb978f2f8388d0c35a7ef70a344444dbcc90bb73.tar.xz
ontogen-eb978f2f8388d0c35a7ef70a344444dbcc90bb73.zip
Do not output Japanese flag prematurely
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--ns-schema.xsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/ns-schema.xsl b/ns-schema.xsl
index cdf0c64..c9533d0 100644
--- a/ns-schema.xsl
+++ b/ns-schema.xsl
@@ -589,8 +589,10 @@ if(navigator.userAgent.indexOf('MSIE') != -1) document.getElementById('ie-notice
<xsl:if test="$exc &gt; 1"><h3>Example <xsl:value-of select="position()"/></h3></xsl:if>
<!--@ description of this example -->
<p><xsl:value-of select="rdfs:comment|dc:description"/></p>
- <p><img src="/parts/ja.png" alt="[ja]"/> <xsl:value-of select="rdfs:comment[@xml:lang='ja']|dc:description[@xml:lang='ja']"/>
- <xsl:apply-templates select="ex:pfx"/></p>
+ <xsl:if test="rdfs:comment[@xml:lang='ja']|dc:description[@xml:lang='ja']">
+ <p><img src="/parts/ja.png" alt="[ja]"/> <xsl:value-of select="rdfs:comment[@xml:lang='ja']|dc:description[@xml:lang='ja']"/></p>
+ </xsl:if>
+ <xsl:apply-templates select="ex:pfx"/>
<!--@ link to trial example (e.g. web app) -->
<xsl:if test="ex:trial">
@@ -628,7 +630,7 @@ if(navigator.userAgent.indexOf('MSIE') != -1) document.getElementById('ie-notice
<!-- for example prefix -->
<xsl:template match="ex:pfx">
- <br/>(Note: vocabulary of this schema represented with prefix <strong><xsl:value-of select="."/></strong>)
+ <p>(Note: vocabulary of this schema represented with prefix <strong><xsl:value-of select="."/></strong>)</p>
</xsl:template>