> What processor are you using? Some let you preset the > top-level context so > that "anonymous" xpaths like "//rng:define" will work. Not inside a function though: functions are defined to execute with a null context item. Michael Kay http://www.saxonica.com/