Bug 6613

Summary: cannot use xtags:style more than one time per page
Product: Taglibs Reporter: Alexei Yudichev <ayud>
Component: XTags TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED LATER    
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Alexei Yudichev 2002-02-21 16:05:33 UTC
I use the following form:

  <xtags:style xsl="/includes/menuSec.xsl">
    <jsp:include page="/includes/menu.xml.jsp"/>
  </xtags:style>

If I try to use similar construction on the same page I get 
org.xml.sax.SAXParseException: The root element is required in a well-formed 
document 
because field "xml" in StyleTag.java still holds the old StringReader value 
(obtained in doAfterBody() of the first tag call). The fix is to set "xml" 
and "xsl" to null in doEndTag() like it is done in release(). According to 
spec, release() is only guaranteed to be called before the class instance is 
garbage collected.
I use Resin 2.0.5.
Comment 1 Henri Yandell 2009-11-29 19:43:45 UTC
Resolving. Taglib has been retired.