Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 67477 invoked by uid 500); 4 Oct 2001 10:28:17 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 67465 invoked from network); 4 Oct 2001 10:28:16 -0000 Message-ID: <20011004102830.33302.qmail@web12808.mail.yahoo.com> Date: Thu, 4 Oct 2001 03:28:30 -0700 (PDT) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: Re: AW: Order of namespace declarations for taglibs? To: cocoon-dev@xml.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ugo, Also in your test taglib make sure that it references xsp-request in the namespace declarations. Thanks, dims --- Carsten Ziegeler wrote: > Hi Ugo, > > could you please try the Xalan and Xerces version provided with the b2 > in the c2rc1a? This way we could find out if it is a cocoon related problem, > or (hopefully) a xalan/xerces problem. > > Carsten > > > > -----Ursprungliche Nachricht----- > > Von: Ugo Cei [mailto:u.cei@cbim.it] > > Gesendet: Donnerstag, 4. Oktober 2001 09:39 > > An: cocoon-dev@xml.apache.org > > Betreff: Order of namespace declarations for taglibs? > > > > > > Hi people, > > > > I posted this question on the users list three days ago, but got no > > reply, so I thought I'd better bother you :). In the meantime I > > partially solved the problem but uncovered a possible bug in C2.RC1a (or > > Xerces or Xalan). > > > > ........................................................ > > I have a problem in C2.0rc1a with one of my logicsheets. This logicsheet > > uses another builtin taglib, like for instance xsp-request (please have > > a look at the attached test.xsl file). The problem is that the elements > > of the xsp-request taglib are NOT expanded by the XSP generator, so they > > are copied verbatim to the output. The attached test1.xsp file, when > > processed, produces the output that is contained in the attached > > test1.xml file. > > > > This only happens with the RC1a release, whereas everything works > > correctly with 2.0b2. The funny thing is that, if you restart the > > servlet container and remove all work files, it works correctly with > > 2.0rc1a but ONLY THE FIRST TIME the page is requested. If you reload the > > page, the bug manifests itself. > > > > I have verified this behavior with Tomcat 4.0 under Linux and with > > Tomcat 3.2.3 under Solaris 8 (BTW, I cannot compile mod_webapp under > > Solaris 8, so I am forced to use Tomcat 3.2.3, but this is a problem for > > the Tomcat list). > > ........................................................ > > > > Having had no reply, I tried to change the order of namespace > > declarations and "fixed" the problem. I have concluded that, if the > > "test" taglib logicsheet uses the "xsp-request" taglib, everything works > > ONLY if, in the XSP document, the namespace declaration for "test" comes > > BEFORE the namespace declaration for "xsp-request". That is, in the > > attached test1.xsp file, change > > > > > xmlns:xsp="http://apache.org/xsp" > > xmlns:xsp-request="http://apache.org/xsp/request/2.0" > > xmlns:log="http://apache.org/xsp/log/2.0" > > xmlns:test="http://caterina.cbim.it/xsp/test/1.0"> > > > > to > > > > > xmlns:xsp="http://apache.org/xsp" > > xmlns:log="http://apache.org/xsp/log/2.0" > > xmlns:test="http://caterina.cbim.it/xsp/test/1.0" > > xmlns:xsp-request="http://apache.org/xsp/request/2.0"> > > > > > > Under C2b2 this is not the case, the order does not matter. > > > > I was under the impression that the order of namespace declarations is > > irrelevant in XML and that parsers and/or XSLT processors are not > > required to report them to the application in any particular order. > > Should this behavior be classified as a bug or as an undocumented > > feature? ;) > > > > Best Regards, > > > > Ugo > > > > > > -- > > Ugo Cei - Consorzio di Bioingegneria e Informatica Medica > > P.le Volontari del Sangue, 2 - 27100 Pavia - Italy > > Phone: +39.0382.525100 - E-mail: u.cei@cbim.it > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > ===== Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org