Using XInclude is the solution but I don't know whether Xerces support XInclude or
not.

Katherine Barry wrote:

> What I've got is:
>
> Action.xml:
>
> <!DOCTYPE action [
>         <!ENTITY deployment SYSTEM "file:./deploymentaction.xml">
> ]>
> <action-mappings>
>         <!-- Default Forward when mapping.findForward() does not find a forward
> name   -->
>         <forward name="home" path="/home.jsp"/>
>         &deployment;
>         <!--Search Schedule -->
>         <action ....
>         </action>
> </action-mappings>
>
> ------------------------------------------
> I've had to add the DOCTYPE declaration since the action.xml doesn't
> normally have one.
>
> This causes a parsing error on startup. I've tried referencing deployment
> with %(%deployment instead of &deployment)-> can't find the path when I run
> it. I've tried different names for the doctype, doesn't care. Suggestions?
>
> Katherine
>
> -----Original Message-----
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 22, 2000 5:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Action.xml
>
> Craig & Katherine,
>
> Here's a message from ant-user that describes how to do this (for Ant, at
> least, although it should work for action.xml as well).
>
> --
> Martin Cooper
> Tumbleweed Communications
>
> ----- Original Message -----
> From: "Stefan Bodewig" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 13, 2000 12:50 AM
> Subject: Re: including other build files
>
> > I've added an entry for this to the FAQ but unfortuately it hasn't
> > been approved yet (I have no influence on this).
> >
> > Stefan
> >
> > -------------------------------------------------------------------------
> >
> > How do I include another fragment of a buildfile?
> >
> > You can use XML's way of including external files and let the parser
> > do the job for Ant:
> >
> > <?xml version="1.0"?>
> >
> > <!DOCTYPE project [
> >     <!ENTITY common SYSTEM "file:./common.xml">
> > ]>
> >
> > <project name="test" default="test" basedir=".">
> >
> >   <target name="setup">
> >     ...
> >   </target>
> >
> >   &common;
> >
> >   ...
> >
> > </project>
> >
> > will literally include the contents of common.xml where you've placed
> > the &common; entity.
> >
> > In combination with a DTD this would look like this:
> >
> > <!DOCTYPE project PUBLIC "-//ANT//DTD project//EN" "file:./ant.dtd" [
> >    <!ENTITY include SYSTEM "file:./header.xml">
> > ]>

Reply via email to