Skip to content

Commit 9463256

Browse files
committed
Fixed xhtml:DefinitionDescription RDFa override for language-tagged literals
1 parent 5c4af3d commit 9463256

File tree

1 file changed

+12
-0
lines changed
  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/imports

1 file changed

+12
-0
lines changed

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/imports/default.xsl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,18 @@ exclude-result-prefixes="#all"
436436
</dd>
437437
</xsl:template>
438438

439+
<xsl:template match="text()[../@xml:lang]" mode="xhtml:DefinitionDescription">
440+
<xsl:variable name="property-uri" select="../concat(namespace-uri(), local-name())" as="xs:string"/>
441+
442+
<dd property="{$property-uri}">
443+
<span class="label label-info pull-right">
444+
<xsl:value-of select="../@xml:lang"/>
445+
</span>
446+
447+
<xsl:apply-templates select="."/>
448+
</dd>
449+
</xsl:template>
450+
439451
<xsl:template match="node()" mode="xhtml:DefinitionDescription">
440452
<xsl:variable name="property-uri" select="../concat(namespace-uri(), local-name())" as="xs:string"/>
441453

0 commit comments

Comments
 (0)