Skip to content

Commit 861794f

Browse files
committed
The package stylesheet stops importing the platform layout.
A package stylesheet is never compiled on its own. The platform loads the application's stylesheet and appends an xsl:import for each imported package after that stylesheet's own imports - so the package ranks below them in import precedence, and the layout it extends is already in the tree by the time the package's rules are read. Importing it here pulled the same module in a second time by a different path. That second path is what needed $ldh:base. Compiled from raw.githubusercontent.com, this file's base URI is GitHub, so a relative href cannot reach the deployment; the import therefore resolved against a static parameter naming the instance origin, which the platform set on the XsltCompiler because _href is a shadow attribute evaluated at compile time. With the import gone the parameter has no purpose, and the ldh prefix and entity go with it. $foaf:Agent goes too - declared here since the package was extracted, referenced by nothing since the theme templates that used it were removed. What remains is the package's one rule: the SKOS hierarchy predicates render as the concept tree rather than as statement rows.
1 parent b3804f2 commit 861794f

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

packages/skos/layout.xsl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE xsl:stylesheet [
3-
<!ENTITY ldh "https://w3id.org/atomgraph/linkeddatahub#">
43
<!ENTITY ac "https://w3id.org/atomgraph/client#">
54
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
65
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
76
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
87
<!ENTITY skos "http://www.w3.org/2004/02/skos/core#">
98
<!ENTITY srx "http://www.w3.org/2005/sparql-results#">
10-
<!ENTITY foaf "http://xmlns.com/foaf/0.1/">
119
]>
1210
<xsl:stylesheet version="3.0"
1311
xmlns="http://www.w3.org/1999/xhtml"
1412
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1513
xmlns:xhtml="http://www.w3.org/1999/xhtml"
1614
xmlns:xs="http://www.w3.org/2001/XMLSchema"
17-
xmlns:ldh="&ldh;"
1815
xmlns:ac="&ac;"
1916
xmlns:rdf="&rdf;"
2017
xmlns:rdfs="&rdfs;"
2118
xmlns:xsd="&xsd;"
2219
xmlns:skos="&skos;"
2320
xmlns:srx="&srx;"
24-
xmlns:foaf="&foaf;"
2521
exclude-result-prefixes="#all">
2622

27-
<xsl:param name="ldh:base" as="xs:anyURI" static="yes"/>
28-
29-
<xsl:import _href="{resolve-uri('static/com/atomgraph/linkeddatahub/xsl/layout.xsl', $ldh:base)}"/>
30-
31-
<xsl:param name="foaf:Agent" as="document-node()?"/>
32-
33-
<!-- no stylesheet override: the package rides the design system the system layout links.
34-
The theme injected here was a Bootstrap sheet under the application's static path, which
35-
no longer exists and would have layered a second design system over the kits -->
36-
3723
<!-- the hierarchy predicates render as the concept tree, not as statement rows -->
3824
<xsl:template match="skos:narrower | skos:broader | skos:related | skos:member" mode="ac:PropertyEditor"/>
3925

0 commit comments

Comments
 (0)