XSLT Extension - Members

The Members library XSLT extension can be used to ease those often tricky situations in XSLT.

Enabling the XSLT extension for use in your XSLT templates.

Add the following XML snippet to your ~/config/xsltExtensions.config file:

<XsltExtensions>
	...
	<ext assembly="uComponents.Core" type="uComponents.Core.XsltExtensions.Members" alias="ucomponents.members" />
	...
</XsltExtensions>

Methods

Here are available methods:

Method Returns Notes
GetGroupsByMemberId(Int32 memberId) A node-set of all the member-groups from the specific member Gets a list of group names from the specific member.
GetMembersByGroupName(String groupName) Returns a list of all the member names. Gets the usernames of all the members in the specified group.
IsMemberOfAGroup(String groupName, Int32 memberId) Returns true if member is a member of the group. Checks if a member is member of a specific group.
Search(String searchText) Returns an XML structure of the Members search results. Performs a basic/quick search against the Examine/Lucene index for Members.
Search(String searchText, Boolean useWildcards) Returns an XML structure of the Members search results. Performs a basic/quick search against the Examine/Lucene index for Members.

Last edited Aug 10, 2011 at 10:20 AM by leekelleher, version 4