Skip to content

Commit

Permalink
Fixed XPath syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Nov 9, 2023
1 parent 9889f0b commit ab7b021
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ extension-element-prefixes="ixsl"
<xsl:variable name="shapes" select="if ($shape-query and exists($types)) then (ldh:query-result(map{}, resolve-uri('ns', $ldt:base), $shape-query || ' VALUES $Type { ' || string-join(for $type in $types return '&lt;' || $type || '&gt;', ' ') || ' }')) else ()" as="document-node()?"/>
<xsl:variable name="type-metadata" select="if (exists($types)) then ldh:send-request(resolve-uri('ns', $ldt:base), 'POST', 'application/sparql-query', 'DESCRIBE $Type' || ' VALUES $Type { ' || string-join(for $type in $types return '&lt;' || $type || '&gt;', ' ') || ' }', map{ 'Accept': 'application/rdf+xml' }) else ()" as="document-node()?"/>
<xsl:variable name="property-uris" select="distinct-values(rdf:Description/*/concat(namespace-uri(), local-name()))" as="xs:string*"/>
<xsl:variable name="property-metadata" select="if (exists($property-uris)) ldh:send-request(resolve-uri('ns', $ldt:base), 'POST', 'application/sparql-query', 'DESCRIBE $Type' || ' VALUES $Type { ' || string-join(for $uri in $property-uris return '&lt;' || $uri || '&gt;', ' ') || ' }'), map{ 'Accept': 'application/rdf+xml' }) else ()" as="document-node()?"/>
<xsl:variable name="property-metadata" select="if (exists($property-uris)) then ldh:send-request(resolve-uri('ns', $ldt:base), 'POST', 'application/sparql-query', 'DESCRIBE $Type' || ' VALUES $Type { ' || string-join(for $uri in $property-uris return '&lt;' || $uri || '&gt;', ' ') || ' }'), map{ 'Accept': 'application/rdf+xml' }) else ()" as="document-node()?"/>

<form method="{$method}" action="{$action}">
<xsl:if test="$id">
Expand Down

0 comments on commit ab7b021

Please sign in to comment.