Sweet piece of code

| 3 Comments | No TrackBacks
//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!

Related Blog Posts

No TrackBacks

TrackBack URL: http://www.tkachenko.com/cgi-bin/mt-tb.cgi/69

3 Comments

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

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

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

Leave a comment