Skip to content

Commit

Permalink
Set @id on blocks from $block-values
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Dec 18, 2024
1 parent c0d1dc8 commit 34c8973
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,10 @@ extension-element-prefixes="ixsl"
<!-- render contents attached to the types of this resource using ldh:template -->
<xsl:for-each select="$block-values" use-when="system-property('xsl:product-name') = 'SAXON'">
<xsl:if test="doc-available(ac:document-uri(.))">
<xsl:variable name="id" select="ac:uuid()" as="xs:string"/>
<xsl:apply-templates select="key('resources', ., document(ac:document-uri(.)))" mode="bs2:Row">
<xsl:with-param name="about" select="xs:anyURI($base-uri || '#id' || ac:uuid())"/> <!-- set a unique @about -->
<xsl:with-param name="about" select="xs:anyURI($base-uri || '#id' || $id)"/> <!-- set a unique @about -->
<xsl:with-param name="id" select="$id"/>
</xsl:apply-templates>
</xsl:if>
</xsl:for-each>
Expand Down

0 comments on commit 34c8973

Please sign in to comment.