X-Git-Url: https://git.ladys.computer/Vocab/blobdiff_plain/2e47aa87081f9ebdecdd7fb5e8a74271616ecb91..refs/heads/live:/transforms/render.xslt diff --git a/transforms/render.xslt b/transforms/render.xslt index 40ff0a7..cdde418 100644 --- a/transforms/render.xslt +++ b/transforms/render.xslt @@ -11,12 +11,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one --> <!DOCTYPE transform [ <!ENTITY en '<attribute xmlns="http://www.w3.org/1999/XSL/Transform" name="lang"><text>en</text></attribute><attribute xmlns="http://www.w3.org/1999/XSL/Transform" name="xml:lang"><text>en</text></attribute>'> + <!ENTITY xhtml 'http://www.w3.org/1999/xhtml'> ]> <transform xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:Vocab="urn:fdc:vocab.ladys.computer:20240731:ns" xmlns:Vocabvocab="urn:fdc:vocab.ladys.computer:20240731:vocab:" - xmlns:html="http://www.w3.org/1999/xhtml" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" @@ -26,9 +26,9 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one > <书社:id>urn:fdc:vocab.ladys.computer:20240731:transforms:render.xslt</书社:id> <template name="Vocab:more-info"> - <element name="html:span"> + <element name="span" namespace="&xhtml;"> &en; - <element name="html:span"> + <element name="span" namespace="&xhtml;"> <attribute name="aria-hidden"> <text>true</text> </attribute> @@ -40,7 +40,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one </attribute> <text>?⃝</text> </element> - <element name="html:span"> + <element name="span" namespace="&xhtml;"> <attribute name="style"> <text>clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute</text> </attribute> @@ -65,12 +65,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one </apply-templates> <text>}</text> </when> - <when test="owl:complementOf"> + <when test="owl:datatypeComplementOf"> <if test="$use-parens"> <text>(</text> </if> <text>not </text> - <apply-templates select="(owl:complimentOf/@rdf:resource|owl:complimentOf/*)[1]" mode="Vocab:render-class"> + <apply-templates select="(owl:datatypeComplementOf/@rdf:resource|owl:datatypeComplementOf/*)[1]" mode="Vocab:render-class"> <with-param name="root" select="$root"/> <with-param name="use-parens" select="true()"/> </apply-templates> @@ -345,15 +345,15 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one <param name="resource-context"/> <if test="string($resource-context)='' or string(@rdf:resource)!=$resource-context"> <text> </text> - <element name="html:details"> + <element name="details" namespace="&xhtml;"> <attribute name="class"> <text>inference</text> </attribute> - <element name="html:summary"> + <element name="summary" namespace="&xhtml;"> <call-template name="Vocab:more-info"/> </element> - <element name="html:div"> - <element name="html:span"> + <element name="div" namespace="&xhtml;"> + <element name="span" namespace="&xhtml;"> &en; <text>implied by</text> </element> @@ -402,15 +402,15 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one <param name="resource-context"/> <if test="string($resource-context)='' or string(@rdf:resource)!=$resource-context"> <text> </text> - <element name="html:details"> + <element name="details" namespace="&xhtml;"> <attribute name="class"> <text>inference</text> </attribute> - <element name="html:summary"> + <element name="summary" namespace="&xhtml;"> <call-template name="Vocab:more-info"/> </element> - <element name="html:div"> - <element name="html:span"> + <element name="div" namespace="&xhtml;"> + <element name="span" namespace="&xhtml;"> &en; <text>implied by</text> </element> @@ -485,15 +485,15 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one <param name="resource-context"/> <if test="string($resource-context)='' or string(@rdf:resource)!=$resource-context"> <text> </text> - <element name="html:details"> + <element name="details" namespace="&xhtml;"> <attribute name="class"> <text>inference</text> </attribute> - <element name="html:summary"> + <element name="summary" namespace="&xhtml;"> <call-template name="Vocab:more-info"/> </element> - <element name="html:div"> - <element name="html:span"> + <element name="div" namespace="&xhtml;"> + <element name="span" namespace="&xhtml;"> &en; <text>implied by</text> </element> @@ -520,9 +520,10 @@ 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="/"/> - <element name="html:code"> + <variable name="datatype" select="@rdf:datatype"/> + <element name="code" namespace="&xhtml;"> <text>"</text> - <element name="html:span"> + <element name="span" namespace="&xhtml;"> <if test="string(@xml:lang)!=''"> <attribute name="lang"> <value-of select="@xml:lang"/> @@ -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>