Skip to content

Commit 15384fc

Browse files
committed
$classes fix in bs2:Row
1 parent 231428a commit 15384fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE xsl:stylesheet [
3+
<!ENTITY lapp "https://w3id.org/atomgraph/linkeddatahub/apps#">
34
<!ENTITY def "https://w3id.org/atomgraph/linkeddatahub/default#">
45
<!ENTITY ldh "https://w3id.org/atomgraph/linkeddatahub#">
56
<!ENTITY ac "https://w3id.org/atomgraph/client#">
@@ -23,6 +24,7 @@
2324
<!ENTITY sp "http://spinrdf.org/sp#">
2425
<!ENTITY spin "http://spinrdf.org/spin#">
2526
<!ENTITY void "http://rdfs.org/ns/void#">
27+
<!ENTITY nfo "http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#">
2628
<!ENTITY schema "https://schema.org/">
2729
]>
2830
<xsl:stylesheet version="3.0"
@@ -32,6 +34,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"
3234
xmlns:xs="http://www.w3.org/2001/XMLSchema"
3335
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
3436
xmlns:json="http://www.w3.org/2005/xpath-functions"
37+
xmlns:lapp="&lapp;"
3538
xmlns:ldh="&ldh;"
3639
xmlns:ac="&ac;"
3740
xmlns:a="&a;"
@@ -209,7 +212,8 @@ extension-element-prefixes="ixsl"
209212

210213
<xsl:template match="rdf:RDF" mode="bs2:Row">
211214
<xsl:param name="create-resource" select="true()" as="xs:boolean"/>
212-
<xsl:param name="classes" as="element()*"/>
215+
<xsl:param name="class-uris" select="(xs:anyURI('&lapp;Application'), xs:anyURI('&sd;Service'), xs:anyURI('&nfo;FileDataObject'), xs:anyURI('&sp;Construct'), xs:anyURI('&sp;Describe'), xs:anyURI('&sp;Select'), xs:anyURI('&sp;Ask'), xs:anyURI('&ldh;RDFImport'), xs:anyURI('&ldh;CSVImport'), xs:anyURI('&ldh;GraphChart'), xs:anyURI('&ldh;ResultSetChart'), xs:anyURI('&ldh;View'))" as="xs:anyURI*"/>
216+
<xsl:param name="classes" select="for $class-uri in $class-uris return key('resources', $class-uri, document(ac:document-uri($class-uri)))" as="element()*"/>
213217

214218
<!-- select elements explicitly, because Saxon-JS chokes on text nodes here -->
215219
<!-- hide the content resources - cannot suppress them in the resource-level bs2:Block because its being reused ldh:ContentList/bs2:Row modes -->

0 commit comments

Comments
 (0)