It is certainly not an error, or even a warning, to have a template which 
matches something that doesn't happen to exist in this document -- all 
that means is that this template doesn't fire in this case, which is 
normal stylesheet operation. Presumably some other template does match, if 
this document is of a type that the stylesheet was intended to handle.

If you want to detect unexpected document types, you could write explicit 
tests in your "/" template. Evaluate the XPaths needed to perform that 
test,  check whether the resulting nodesets are empty, and if so use 
xsl:message to report the problem.

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (
http://www.ovff.org/pegasus/songs/threes-rev-11.html)

Reply via email to