-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcontext.xsl
38 lines (32 loc) · 1.19 KB
/
context.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY ac "https://w3id.org/atomgraph/client#">
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ac="∾"
>
<xsl:output method="xml" indent="yes"/>
<xsl:param name="ac:stylesheet"/>
<xsl:param name="ac:resolvingUncached"/>
<xsl:param name="ac:sitemapRules"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Context">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<xsl:if test="$ac:stylesheet">
<Parameter name="∾stylesheet" value="{$ac:stylesheet}" override="false"/>
</xsl:if>
<xsl:if test="$ac:resolvingUncached">
<Parameter name="∾resolvingUncached" value="{$ac:resolvingUncached}" override="false"/>
</xsl:if>
<xsl:if test="$ac:sitemapRules">
<Parameter name="∾sitemapRules" value="{$ac:sitemapRules}" override="false"/>
</xsl:if>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>