Thomas Dumm wrote: > > How do I test that an ancestor of the implicitly selected element has > the *absolute* path /Collection/Facts/Facts/Facts. > (Collection is the document root element). > > The command > > <test expression="(/Collection/Facts/Facts/Facts)"/> > > is apparently not correct. >
Please use <match>. Something like: <match context="$implicitElement" pattern="/Collection/Facts/Facts/Facts//*"/> No parenthese. And also make sure that all the above elements actually have no namespace. See XSL Transformations (XSLT) Version 1.0 - Patterns - http://www.w3.org/TR/xslt#patterns See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_reference.html See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpath_vars.html#predef_vars

