Sweet piece of code

| 3 Comments | No TrackBacks
XPathExpression expr = nav.Compile("set:distinct(//author)");
expr.SetContext(new ExsltContext(doc.NameTable));
XPathNodeIterator authors = nav.Select(expr);
while (authors.MoveNext())
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


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