Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 66268 invoked from network); 12 Nov 2002 17:25:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2002 17:25:42 -0000 Received: (qmail 16898 invoked by uid 97); 12 Nov 2002 17:25:03 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 16824 invoked by uid 97); 12 Nov 2002 17:25:02 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 16754 invoked by uid 98); 12 Nov 2002 17:25:01 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Tue, 12 Nov 2002 09:23:48 -0800 (PST) From: "Craig R. McClanahan" To: Jakarta Commons Developers List cc: tomcat-dev@jakarta.apache.org Subject: Re: [Q] How to merge 2 web.xml files? In-Reply-To: <000d01c28a3b$a9042580$e37278d5@octovma> Message-ID: <20021112091905.I89400-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 12 Nov 2002, Vincent Massol wrote: > Date: Tue, 12 Nov 2002 11:07:15 -0000 > From: Vincent Massol > Reply-To: Jakarta Commons Developers List > To: tomcat-dev@jakarta.apache.org, > 'Jakarta Commons Developers List' > Subject: [Q] How to merge 2 web.xml files? > > Hi, > > I would like to merge 2 web.xml files programmatically and generate a > new web.xml. Do you know if there's some library or code that already > does this? > > I know Tomcat has a global web.xml. Is there some code I could use from > Tomcat? > Tomcat doesn't actually merge the two files in any XML sense -- it simply parses (using Digester) the global web.xml followed by the local web.xml. > Does anyone has a DVSL/XSL/other stylesheet for making this > transformation? > The document() function in XSLT should be able to help you here. For an example, the Struts documentation is produced by XSLT transformations that (among other things) use document() to import the project.xml file (defining the menu bar) into each page. See "doc/stylesheets/struts.xsl" in the source distro. > Thanks a lot > -Vincent > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: