Basic principle: Use the WebService GetUserCollectionFromGroup provided by SharePoint to obtain the user set in the group based on the specified group name.
Processing Process:
The output XML snippet is
The XSLT segment is:
Code
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:h="http://schemas.microsoft.com/sharepoint/soap/directory/">
<xsl:template match="/">
<xsl:for-each select="xml/h:GetGroupCollectionFromUser/h:Groups/h:Group"> <xsl:value-of select="@Name"/>;</xsl:for-each> </xsl:template>
</xsl:stylesheet>
Output result:
Lui, Mingle (Microsoft); Mingle, Lu (Microsoft );
If XSLT uses the following
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:h="http://schemas.microsoft.com/sharepoint/soap/directory/">
<xsl:template match="/">
<xsl:value-of select="xml/h:GetUserCollectionFromGroup/h:Users/h:User/@Name"/>
</xsl:template></xsl:stylesheet>
The output result is the first record of the XML Element User:
Lui, Mingle (Microsoft)
Code
<xml>
<GetUserCollectionFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">
<Users>
<User ID="14" Sid="S-1-5-21-1178368992-402679808-390482200-577565" Name="Lui, Mingle(Microsoft)" LoginName="Microsoft\00168" Email="Mingle.Lui@hotmail.com" Notes="" IsSiteAdmin="True" IsDomainGroup="False" />
<User ID="10" Sid="S-1-5-21-1178368992-402679808-390482200-423316" Name="Mingle.Lu(Microsoft)" LoginName="Microsoft\00169" Email="Mingle.Lui@live.com" Notes="" IsSiteAdmin="True" IsDomainGroup="False" />
</Users></GetUserCollectionFromGroup>
</xml>
Process File download: download