]> Lady’s Gitweb - Vocab/blobdiff - transforms/render.xslt
Add UnicodeString and UnicodeScalarValue
[Vocab] / transforms / render.xslt
index a014cc1a0f3b6e6722c5afb336b76bf90b01180b..cdde418d377e9c447e50ac35d595e31ed67ba8a9 100644 (file)
@@ -520,6 +520,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
        </template>
        <template match="*" mode="Vocab:render-value">
                <param name="root" select="/"/>
        </template>
        <template match="*" mode="Vocab:render-value">
                <param name="root" select="/"/>
+               <variable name="datatype" select="@rdf:datatype"/>
                <element name="code" namespace="&xhtml;">
                        <text>&quot;</text>
                        <element name="span" namespace="&xhtml;">
                <element name="code" namespace="&xhtml;">
                        <text>&quot;</text>
                        <element name="span" namespace="&xhtml;">
@@ -539,11 +540,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                        <text>@</text>
                                        <value-of select="@xml:lang"/>
                                </when>
                                        <text>@</text>
                                        <value-of select="@xml:lang"/>
                                </when>
-                               <when test="@rdf:datatype and string(@rdf:datatype)!='http://www.w3.org/2001/XMLSchema#string'">
+                               <when test="$datatype and string($datatype)!='http://www.w3.org/2001/XMLSchema#string'">
                                        <text>^^</text>
                                        <text>^^</text>
-                                       <for-each select="/">
+                                       <for-each select="$root">
                                                <call-template name="Vocab:link-to">
                                                <call-template name="Vocab:link-to">
-                                                       <with-param name="resource" select="@rdf:datatype"/>
+                                                       <with-param name="resource" select="string($datatype)"/>
                                                        <with-param name="kind" select="'class'"/>
                                                </call-template>
                                        </for-each>
                                                        <with-param name="kind" select="'class'"/>
                                                </call-template>
                                        </for-each>
This page took 0.452351 seconds and 4 git commands to generate.