src/umbraco.presentation.xslt.Exslt/ExsltSets.cs
/// <summary>
/// Implements the following function 
///    node-set distinct(node-set)
/// </summary>
/// <param name="nodeset">The input nodeset</param>
/// <returns>Returns the nodes in the nodeset whose string value is 
/// distinct</returns>
Implements the following function
node-set distinct(node-set)
Implements the following function node - set distinct ( node - set )
public static XPathNodeIterator distinct(XPathNodeIterator nodeset){
					ExsltNodeList nodelist = new ExsltNodeList();
					while(nodeset.MoveNext()){
						if(!nodelist.ContainsValue(nodeset.Current.Value)){
							nodelist.Add(nodeset.Current.Clone()); 
						}					
					}
					return ExsltCommon.ExsltNodeListToXPathNodeIterator(nodelist); 
				}
public static XPathNodeIterator distinct ( XPathNodeIterator nodeset ) { ExsltNodeList nodelist = new ExsltNodeList ( ) ; while ( nodeset . MoveNext ( ) ) { if ( ! nodelist . ContainsValue ( nodeset . Current . Value ) ) { nodelist . Add ( nodeset . Current . Clone ( ) ) ; } } return ExsltCommon . ExsltNodeListToXPathNodeIterator ( nodelist ) ; }
Implements the following function
node-set distinct(node-set)
Implements the following function node - set distinct ( node - set )
Returns the nodes in the nodeset whose string value is
distinct
Returns the nodes in the nodeset whose string value is distinct
nodeset
XPathNodeIterator
The input nodeset
The input nodeset