Skip to content

Commit

Permalink
Debug form onsubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 18, 2023
1 parent d7f2969 commit 9c8a481
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,11 @@ LIMIT 100]]></sp:text>
<xsl:variable name="textarea-id" select="descendant::textarea[@name = 'query']/ixsl:get(., 'id')" as="xs:string"/>
<xsl:variable name="yasqe" select="ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub.yasqe'), $textarea-id)"/>
<xsl:variable name="query" select="ixsl:call($yasqe, 'getValue', [])" as="xs:string"/> <!-- get query string from YASQE -->

<xsl:message>
WTF $query: <xsl:value-of select="$query"/>
</xsl:message>

<xsl:variable name="service-uri" select="xs:anyURI(ixsl:get(id('query-service'), 'value'))" as="xs:anyURI?"/>
<xsl:variable name="service" select="key('resources', $service-uri, ixsl:get(ixsl:window(), 'LinkedDataHub.apps'))" as="element()?"/>
<xsl:variable name="endpoint" select="($service/sd:endpoint/@rdf:resource/xs:anyURI(.), sd:endpoint())[1]" as="xs:anyURI"/>
Expand Down

0 comments on commit 9c8a481

Please sign in to comment.