ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Merging XML files
Date Fri, 22 Aug 2003 02:39:17 GMT
Have you looked at Olivers Page Humboldt University for merging 2 xml files?

http://www.informatik.hu-berlin.de/~obecker/XSLT/#merge

viel Gluck,

Martin

From: "Will Hartung" <willh@msoft.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, August 21, 2003 11:23 AM
Subject: Merging XML files


> Hi all, I'm kind of looking for a leg up here.
>
> We have a Tomcat application and it has a generic, hand made web.xml file.
>
> Tomcat has a facility to precompile its JSPs (using JSPC), and part of
this
> process is to create a new web.xml file that contains all of the servlet
> mappings.
>
> However, what it does NOT do is integrate this new web.xml with the one
> already contained in the webapp.
>
> So, I'm looking for pointers on a simple way to merge the JSPC generated
> web.xml with the hand made web.xml.
>
> I'm sure this can be done with a variety of methods (notably XSL, and
> perhaps an ant task), but I'm completely unfamiliar with these methods.
All
> my previous attempts at using XSLT have been basic miserable disasters (I
> haven't quite grokked it).
>
> I was hoping someone had a more concrete suggestion with perhaps some
> example code, rather than just "use XXX" and some theory. XSLT would be
> peachy if I had the actual XSLT code to use.
>
> At this point it would probably be faster for me to simply write a Java
> class that merged the two files, but I was kind of hoping for something a
> wee bit more elegant. I'm aware that I can use something like <ENTITY>
with
> the XML files themselves, used much like an include, but I would still
have
> to break the JSPC file apart into the 2 chunks that I need out of it
before
> that would be usable, and if I have to do that, I may as well merge the
> whole thing anyway.
>
> I'd like to know more of the deeper workings of these tools so I could
> actually work this out on my own, but there's time pressure, and my
previous
> frustrations, so I can't really walk that path right now.
>
> Thanx for any help.
>
> Regards,
>
> Will Hartung
> (willh@msoft.com)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message