Why is xpath assert broken when I use it on XSLT stylesheets? I have an XSLT stylesheet that I'm unit testing. My stylesheet generates XSLT stylesheets. I am trying to perform xpath asserts on the resulting generated stylesheets and it looks like XMLUnit is of no help to me. I use a valid Xpath that should result in a single hit and I get zero hits with the XMLUnit Xpath assert. So then I changed to use my own implementation of an XpathAssert. In my implementation I delegate to the JDK5 XPath API to check if an xpath exists. That throws errors. Can somebody show me how to execute this XPath, "/xsl:stylesheet/xsl:templ
ate[@name = 'foo']/xsl:call-template[@
name = 'foo']" against the following XSLT?
I realize this is a particularly involved and unique question but I can't find an answer. I've also cross posted on the yahoo Junit group where I've included more detail about my actual code. I forgot that it takes a moment to moderate so now I'm posting here. Any insight is highly appreciated.