Skip to content

Commit 6aef905

Browse files
namedgraphclaude
andcommitted
Fix language-badge leaking into view heading
A language-tagged dct:title renders (xhtml:DefinitionDescription) as a <dd> with a leading language-badge <span>, so xsl:value-of over the whole element prepended the tag to the heading (e.g. "enCurrent members"). Select the value text() node only, dropping the badge; [1] guards against multiple language values. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8a56f16 commit 6aef905

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/view.xsl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,8 @@ exclude-result-prefixes="#all"
796796
<xsl:result-document href="?." method="ixsl:replace-content">
797797
<xsl:where-populated>
798798
<h2>
799-
<xsl:value-of select="$container/descendant::*[@property = '&dct;title']"/>
799+
<!-- select the value text() only: a lang-tagged dct:title renders as <dd> with a leading language-badge <span> (xhtml:DefinitionDescription), and value-of over the whole element would prepend the badge (e.g. "enCurrent members"). [1] guards against multiple language values. -->
800+
<xsl:value-of select="($container/descendant::*[@property = '&dct;title']/text())[1]"/>
800801
</h2>
801802
</xsl:where-populated>
802803

0 commit comments

Comments
 (0)