K
Kasp
Below is a XSL that I can barely understand being a newbie to XSL world.
Can someone let me know what do these 3 lines do exactly?
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember"
format="-1-1" />
</xsl:attribute>
Also, if you can tell me how I can implement this in VB using DOM (MSXML).
Many Thanks.
Below is "a part of" XSL that I have to decode and understand....
- <xsl:choose>
- <xsl:when test="parent::Hierarchy">
<xsl:attribute name="Level">1</xsl:attribute>
- <xsl:attribute name="FullName">
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple" count="Hierarchy/HierarchyMember"
format="-1"/>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../parent::Hierarchy">
<xsl:attribute name="Level">2</xsl:attribute>
- <xsl:attribute name="FullName">
<xsl:value-of select="../@MemberName" /> >
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember"
format="-1-1" />
</xsl:attribute>
</xsl:when>
- <xsl:when test="../../parent::Hierarchy">
<xsl:attribute name="Level">3</xsl:attribute>
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember|H
ierarchy/HierarchyMember/HierarchyMember/HierarchyMember" format="-1-1-1" />
</xsl:attribute>
</xsl:when>
Can someone let me know what do these 3 lines do exactly?
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember"
format="-1-1" />
</xsl:attribute>
Also, if you can tell me how I can implement this in VB using DOM (MSXML).
Many Thanks.
Below is "a part of" XSL that I have to decode and understand....
- <xsl:choose>
- <xsl:when test="parent::Hierarchy">
<xsl:attribute name="Level">1</xsl:attribute>
- <xsl:attribute name="FullName">
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple" count="Hierarchy/HierarchyMember"
format="-1"/>
</xsl:attribute>
</xsl:when>
- <xsl:when test="../parent::Hierarchy">
<xsl:attribute name="Level">2</xsl:attribute>
- <xsl:attribute name="FullName">
<xsl:value-of select="../@MemberName" /> >
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember"
format="-1-1" />
</xsl:attribute>
</xsl:when>
- <xsl:when test="../../parent::Hierarchy">
<xsl:attribute name="Level">3</xsl:attribute>
<xsl:value-of select="@MemberName" />
</xsl:attribute>
- <xsl:attribute name="MemberKey">
<xsl:number level="multiple"
count="Hierarchy/HierarchyMember|Hierarchy/HierarchyMember/HierarchyMember|H
ierarchy/HierarchyMember/HierarchyMember/HierarchyMember" format="-1-1-1" />
</xsl:attribute>
</xsl:when>