C'mon Daniel! libxslt2!Not to, hopefully, sound simplistic, but can't that be done through aparameter toggle to select v1 or v2 for the current xsltproc? Or are thefeatures that different that you cannot reuse most of the codepath?
That depends entirely on how the XPath 2/XQuery implementation looked. XSLT 2 by itself could reuse a lot of code, but all the select processing is significantly bigger. Just the same, most people don't do XSLT with xsltproc; they use the APIs. You wouldn't want a footprint to have to support both 1 & 2, I think.