Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 65448 invoked from network); 18 Sep 2003 01:13:46 -0000 Received: from unknown (HELO adslgateway.multitask.com.au) (202.44.167.185) by daedalus.apache.org with SMTP; 18 Sep 2003 01:13:46 -0000 In-Reply-To: <021401c37d17$be6166c0$0665a8c0@prxu2> To: "Maven Users List" Cc: commons-dev@jakarta.apache.org Subject: [jelly] Re: XML tag library MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0.2CF2 July 23, 2003 From: dion@multitask.com.au Message-ID: Date: Thu, 18 Sep 2003 11:18:36 +1000 X-MIMETrack: Serialize by Router on ADSLGateway/Multitask Consulting/AU(Release 6.0|September 26, 2002) at 18/09/2003 11:18:45 AM, Serialize complete at 18/09/2003 11:18:45 AM Content-Type: text/plain; charset="US-ASCII" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This appears to be a Jelly problem. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ "Pavel Sher" wrote on 17/09/2003 10:32:22 PM: > Hello, > > When I am trying to process the following Jelly script I've got the error: > [java] org.apache.commons.jelly.JellyTagException: file:/C: > /Work/SDS/templates/sample1.xhtml:31:105: The node > "org.dom4j.tree.DefaultElement@97d01f [Element:

/>]" could not be added to the branch "null" because: Cannot add > another element to this Document as it already has a root element of: h1 > [java] at org.apache.commons.jelly.impl.TagScript. > handleException(TagScript.java:683) > > > Script: > > > > ${systemScope.setProperty('javax.xml.transform. > TransformerFactory','net.sf.saxon.TransformerFactoryImpl')} > ${systemScope.setProperty('org.xml.sax.driver','org.apache.xerces. > parsers.SAXParser')} > > > > The first sample > > > > xml="${basedir}/xml/sample1.xml" var="toc"/> > xml="${basedir}/xml/sample1.xml" var="book"/> > > > > > > > > >
Table Of Contents
> > > >
> > > > > >
> > > >
> > > >
> > If I use comment out second and remove > second then the script works fine. > Maybe somebody knows why? > > -- > Best regards > > Pavel Sher, pavel@actimind.com >