diff options
Diffstat (limited to 'policykit_roles/PKpolicy2IPArole.xsl')
-rw-r--r-- | policykit_roles/PKpolicy2IPArole.xsl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/policykit_roles/PKpolicy2IPArole.xsl b/policykit_roles/PKpolicy2IPArole.xsl new file mode 100644 index 0000000..6fdf44f --- /dev/null +++ b/policykit_roles/PKpolicy2IPArole.xsl @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + + <xsl:param name="role_name"/> + + <xsl:output method="xml" indent="yes"/> + <xsl:strip-space elements="*"/> + + <xsl:template match="/"> + <xsl:apply-templates select="policyconfig"/> + </xsl:template> + + <xsl:template match="policyconfig"> + <iparole> + <role> + <name> + <xsl:value-of select="$role_name"/> + </name> + <xsl:apply-templates select="action"/> + </role> + </iparole> + </xsl:template> + + <xsl:template match="action"> + <action> + <action_id> + <xsl:value-of select="@id"/> + </action_id> + <allow_any> + <xsl:value-of select="allow_any"/> + </allow_any> + <allow_inactive> + <xsl:value-of select="allow_inactive"/> + </allow_inactive> + <allow_active> + <xsl:value-of select="allow_active"/> + </allow_active> + </action> + </xsl:template> + +</xsl:stylesheet> |