Skip to content

Commit

Permalink
Parse facts of type xsd:anyURI facts as hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB committed Jan 6, 2024
1 parent a10f03a commit 7064023
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/resources/lode/extraction.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ http://www.oxygenxml.com/ns/doc/xsl ">
<xsl:value-of select="f:getDescriptionLabel('individualassertions')"/>
</dt>
<xsl:for-each select="$assertions//element()[@*:about]">
<xsl:variable name="datatype_uri" select="'http://www.w3.org/2001/XMLSchema#anyURI'"/>
<dd>
<xsl:apply-templates select="@*:about">
<xsl:with-param name="type" select="'property'" tunnel="yes"/>
Expand All @@ -1217,6 +1218,12 @@ http://www.oxygenxml.com/ns/doc/xsl ">
<xsl:when test="@*:resource">
<xsl:apply-templates select="@*:resource"/>
</xsl:when>
<!-- if datatype is of xsd:anyURI create href-->
<xsl:when test="@*:datatype and @*:datatype = $datatype_uri">
<a href="{.}" target="_blank">
<xsl:value-of select="."/>
</a>
</xsl:when>
<xsl:otherwise>
<span class="literal">
<xsl:text>"</xsl:text>
Expand Down

0 comments on commit 7064023

Please sign in to comment.