Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 16, 2023
1 parent 359bad2 commit b3429f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,21 @@ exclude-result-prefixes="#all"
<xsl:param name="uri" as="xs:anyURI"/>
<xsl:param name="leaf" select="true()" as="xs:boolean"/>

<xsl:message>
ldh:BreadCrumbResourceLoaded $uri: <xsl:value-of select="$graph"/>
</xsl:message>

<xsl:choose>
<xsl:when test="?status = 200 and ?media-type = 'application/rdf+xml'">
<xsl:for-each select="?body">
<xsl:variable name="resource" select="key('resources', $uri)" as="element()?"/>
<xsl:variable name="parent-uri" select="$resource/sioc:has_container/@rdf:resource | $resource/sioc:has_parent/@rdf:resource" as="xs:anyURI?"/>
<xsl:if test="$parent-uri">
<xsl:variable name="request-uri" select="ldh:href($ldt:base, ac:absolute-path(base-uri()), map{}, $parent-uri)" as="xs:anyURI"/>
<xsl:message>
ldh:BreadCrumbResourceLoaded $request-uri: <xsl:value-of select="$request-uri"/>
</xsl:message>

<xsl:variable name="request" as="item()*">
<ixsl:schedule-action http-request="map{ 'method': 'GET', 'href': $request-uri, 'headers': map{ 'Accept': 'application/rdf+xml' } }">
<xsl:call-template name="ldh:BreadCrumbResourceLoaded">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ WHERE
</ul>
</xsl:result-document>

<xsl:message>
ldh:BreadCrumbResourceLoaded $graph param: <xsl:value-of select="$graph"/>
</xsl:message>
<!-- passing response map(*) as the context here! -->
<xsl:call-template name="ldh:BreadCrumbResourceLoaded">
<xsl:with-param name="container" select="id('breadcrumb-nav', ixsl:page())"/>
Expand Down

0 comments on commit b3429f2

Please sign in to comment.