-
Notifications
You must be signed in to change notification settings - Fork 1
/
DeployWiz_Roles.xsl
executable file
·39 lines (31 loc) · 1.06 KB
/
DeployWiz_Roles.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
39
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="Roles">
<div>
<xsl:for-each select="Role | RoleService | Feature">
<xsl:apply-templates select="." />
</xsl:for-each>
</div>
</xsl:template>
<xsl:template match="Role | RoleService | Feature">
<div class="TreeDir">
<input type="checkbox" class="TreeDirLabel">
<xsl:choose>
<xsl:when test="@Id">
<xsl:attribute name="id">
<xsl:value-of select="name()"/>.<xsl:value-of select="@Id"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="disabled"></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="@DisplayName"/>
</input>
<!-- Parse Each Child -->
<xsl:for-each select="Role | RoleService | Feature">
<xsl:apply-templates select="." />
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>