]> Lady’s Gitweb - Vocab/blobdiff - transforms/render.xslt
Make pcdm:File a siocactions:DigitalArtifact
[Vocab] / transforms / render.xslt
index a014cc1a0f3b6e6722c5afb336b76bf90b01180b..5b2cc940ad74f903c845fbd0628979f111eef1ac 100644 (file)
@@ -162,7 +162,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        <when test="owl:oneOf">
                                <text>{</text>
                                <for-each select="owl:oneOf/*">
-                                       <apply-templates select="." name="Vocab:render-individual">
+                                       <apply-templates select="." mode="Vocab:render-individual">
                                                <with-param name="root" select="$root"/>
                                                <with-param name="resource-context" select="$resource-context"/>
                                        </apply-templates>
@@ -375,7 +375,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        </call-template>
                </for-each>
        </template>
-       <template match="*" mode="Vocab:render-class">
+       <template match="@*|node()" mode="Vocab:render-class">
                <text>??</text>
        </template>
        <template match="rdf:Description" mode="Vocab:render-individual">
@@ -432,7 +432,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        </call-template>
                </for-each>
        </template>
-       <template match="*" mode="Vocab:render-individual">
+       <template match="@*|node()" mode="Vocab:render-individual">
                <text>??</text>
        </template>
        <template match="owl:AnnotationProperty|owl:DatatypeProperty|rdf:Description" mode="Vocab:render-property">
@@ -515,11 +515,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        </call-template>
                </for-each>
        </template>
-       <template match="*" mode="Vocab:render-property">
+       <template match="@*|node()" mode="Vocab:render-property">
                <text>??</text>
        </template>
-       <template match="*" mode="Vocab:render-value">
+       <template match="@*|node()" 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;">
@@ -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>
-                               <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>
-                                       <for-each select="/">
+                                       <for-each select="$root">
                                                <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>
This page took 0.212261 seconds and 4 git commands to generate.