Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F2825310
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/xml/upgrade-1.3.xsl b/xml/upgrade-1.3.xsl
index 039c4219e3..5798a7c003 100644
--- a/xml/upgrade-1.3.xsl
+++ b/xml/upgrade-1.3.xsl
@@ -1,95 +1,95 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="role_ref">
<xsl:element name="role">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="read|write|deny">
<xsl:element name="acl_permission">
<xsl:copy-of select="@id"/>
<xsl:attribute name="kind"><xsl:value-of select="name()"/></xsl:attribute>
<!-- previously, one could have a single element "matched" multiple times,
each time using a different attribute (or no attribute at all), which
would result, after the generalization (stripping @attribute) in
multiple possibly conflicting ACL behaviours for given element(s);
we could take this into account by, at the very least, preferring
the behavior at attribute-less specification, if any -->
<xsl:choose>
<xsl:when test="@ref">
<xsl:attribute name="reference"><xsl:value-of select="@ref"/></xsl:attribute>
<xsl:if test="@attribute">
<!-- alternatively, rephrase (generalized a bit) turning it to @xpath -->
<xsl:message>ACLs: @attribute cannot accompany @ref for upgrade-1.3.xsl purposes, ignoring</xsl:message>
</xsl:if>
</xsl:when>
<xsl:when test="@tag">
<xsl:attribute name="object-type"><xsl:value-of select="@tag"/></xsl:attribute>
<xsl:if test="@attribute">
<xsl:message>ACLs: @attribute (with @tag) handling generalized a bit for upgrade-1.3.xsl purposes</xsl:message>
<xsl:copy-of select="@attribute"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<!-- must have been xpath per the schema, then -->
<xsl:choose>
<xsl:when test="@attribute">
<xsl:message>ACLs: @attribute (with @xpath) handling generalized a bit for upgrade-1.3.xsl purposes</xsl:message>
<xsl:attribute name="xpath">
<xsl:value-of select="concat(@xpath,'[@', @attribute, ']')"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="@xpath"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>
<xsl:template match="acl_user[role_ref]">
<!-- schema disallows role_ref's AND deny/read/write -->
<xsl:element name="acl_target">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="acl_user[not(role_ref)]">
<xsl:element name="acl_target">
<xsl:apply-templates select="@*"/>
<xsl:if test="count(deny|read|write)" >
<xsl:element name="role">
<xsl:attribute name="id">
<xsl:value-of select="concat('auto-', @id)"/>
</xsl:attribute>
</xsl:element>
</xsl:if>
</xsl:element>
<xsl:if test="count(deny|read|write)" >
<xsl:element name="acl_role">
<xsl:attribute name="id">
<xsl:value-of select="concat('auto-', @id)"/>
</xsl:attribute>
<xsl:apply-templates select="*"/>
</xsl:element>
</xsl:if>
</xsl:template>
-<xsl:template match="@*|*">
+<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
diff --git a/xml/upgrade-2.10.xsl b/xml/upgrade-2.10.xsl
index 976db9180d..50d8fe528f 100644
--- a/xml/upgrade-2.10.xsl
+++ b/xml/upgrade-2.10.xsl
@@ -1,10 +1,10 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
-<xsl:template match="@*|*">
+<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jan 25, 12:07 PM (19 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1322502
Default Alt Text
(3 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment