[ 
http://issues.apache.org/jira/browse/XALANJ-2311?page=comments#action_12442979 
] 
            
Brian Minchau commented on XALANJ-2311:
---------------------------------------

Sergey, I interpret your latest comment to mean that you found your problem, 
but that it took 3 months to find it and that a better error message with more 
accurate location information would have saved you a lot of time.  Is that 
right?

Per the JIRA triage meeting on Oct 16, 2005, Kevin C. will try to reproduce and 
see if a more accurate error message can be produced.

> Wrong error about missing template
> ----------------------------------
>
>                 Key: XALANJ-2311
>                 URL: http://issues.apache.org/jira/browse/XALANJ-2311
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Xalan
>    Affects Versions: 2.7
>         Environment: Xalan 2.7.0, Bundled Xerces, J2SE 1.5.0 and 1.6beta
>            Reporter: Sergey Vladimirov
>            Priority: Critical
>         Attachments: bigtemplate.xsl, BigTemplateTest.java, 
> BigTemplateTest.java
>
>
> xalan wrongly reports about missing template:
> ru.arptek.arpsite.templates.TemplateProcessException: Detected error in 
> stylesheets: 
> C:\DOCUME~1\VLADIM~1.AVD\LOCALS~1\Temp\bigtemplate7628.xsl
> javax.xml.transform.TransformerException: 
> javax.xml.transform.TransformerException: ?????? ElemTemplateElement: Footer
> ==========================================================================================
>                         <xsl:with-param name="contentDescription" 
> select="$contentDescription"/>
>                     </xsl:call-template>
>                     <xsl:call-template name="Footer"/>
>                 </xsl:if>
>             </body>
> ==========================================================================================
>       at 
> ru.arptek.arpsite.xslt.DefaultErrorHandler.wrap(DefaultErrorHandler.java:147)
>       at 
> ru.arptek.arpsite.xslt.bigtemplatetest.BigTemplateTest.test(BigTemplateTest.java:31)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:589)
>       at junit.framework.TestCase.runTest(TestCase.java:154)
>       at junit.framework.TestCase.runBare(TestCase.java:127)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>       at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>       at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: javax.xml.transform.TransformerException: ?????? 
> ElemTemplateElement: Footer
>       at 
> org.apache.xalan.templates.ElemCallTemplate.compose(ElemCallTemplate.java:134)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:357)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362)
>       at 
> org.apache.xalan.templates.StylesheetRoot.composeTemplates(StylesheetRoot.java:362)
>       at 
> org.apache.xalan.templates.StylesheetRoot.recompose(StylesheetRoot.java:337)
>       at 
> org.apache.xalan.processor.StylesheetHandler.endDocument(StylesheetHandler.java:468)
>       at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown 
> Source)
>       at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown 
> Source)
>       at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
>       at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>       at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
>       at 
> org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
>  Source)
>       at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>       at 
> org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920)
>       at 
> ru.arptek.arpsite.xslt.bigtemplatetest.BigTemplateTest.test(BigTemplateTest.java:29)
>       ... 18 more
> (Wrapping error to output additional information by our code :) )
> This template ("Footer") present in stylesheet. Once.
> Why I'm sure that it is a bug? Because workaround is - to move this template 
> UP, more closely to caller.
> But I can't do it with every template. So it is critical to me.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to