September 9, 2003

Sweet piece of code

//Whoohaa!
XPathExpression expr = nav.Compile("set:distinct(//author)");
expr.SetContext(new ExsltContext(doc.NameTable));
XPathNodeIterator authors = nav.Select(expr);
while (authors.MoveNext())
    Console.WriteLine(authors.Current.Value);
EXSLT's set:distinct in XPath-only selection. Sweet.
Coming soon, watch announcements!
September 9, 2003 5:18 PM | #.NET
Comments

Illustrates how EXSLt function scan be used in XPath-only environment.

Posted by: Oleg Tkachenko at October 7, 2003 3:27 PM

Sorry to pose the stupid question. But what does that piece of code accomplish ?

Posted by: Karthik at October 5, 2003 4:24 AM

Great news Oleg!!! I'm looking forward this enhancements to make them available in Schematron.NET too!

Posted by: Daniel Cazzulino at September 16, 2003 8:52 PM
Post a comment




Remember Me?