Skip to content

Commit

Permalink
Fixed xhtml:DefinitionDescription RDFa override for language-tagged…
Browse files Browse the repository at this point in the history
… literals
  • Loading branch information
namedgraph committed Jan 10, 2025
1 parent 5c4af3d commit 9463256
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,18 @@ exclude-result-prefixes="#all"
</dd>
</xsl:template>

<xsl:template match="text()[../@xml:lang]" mode="xhtml:DefinitionDescription">
<xsl:variable name="property-uri" select="../concat(namespace-uri(), local-name())" as="xs:string"/>

<dd property="{$property-uri}">
<span class="label label-info pull-right">
<xsl:value-of select="../@xml:lang"/>
</span>

<xsl:apply-templates select="."/>
</dd>
</xsl:template>

<xsl:template match="node()" mode="xhtml:DefinitionDescription">
<xsl:variable name="property-uri" select="../concat(namespace-uri(), local-name())" as="xs:string"/>

Expand Down

0 comments on commit 9463256

Please sign in to comment.