PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3267 *** shadow/3267 Fri Aug 24 15:32:11 2001 --- shadow/3267.tmp.22684 Fri Aug 24 15:32:11 2001 *************** *** 0 **** --- 1,41 ---- + +============================================================================+ + | xsltc compiler fails silently when xslt references bogus template | + +----------------------------------------------------------------------------+ + | Bug #: 3267 Product: XalanJ2 | + | Status: NEW Version: CurrentCVS | + | Resolution: Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: Xalan-Xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The xsltc compiler fails silently when compiling a stylesheet that calls a + template that does not exist. It should at least spit out an error message + naming the template that is in error. + + Consider the following xslt, which references a non-existant template "bar": + + <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > + <xsl:output method="xml" indent="yes" /> + + <xsl:template name="foo"> + <bar> + <xsl:call-template name="bar"/> + </bar> + </xsl:template> + + <xsl:template match="/"> + <xsl:call-template name="foo"/> + </xsl:template> + + </xsl:stylesheet> + + The compiler produces no class files, and no error messages. It should at least + spit out an error message like: + + "bar: no such named template. Referenced by foo."
