Awesome! Thanks! ;) John
> -----Original Message----- > From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 08, 2003 11:59 AM > To: Tomcat Users List > Subject: Re: DTD for server.xml?? > > > Just so there is a confirmation from someone who did it, This works! > > From my server.xml: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE web-app[ > <!ENTITY vhost SYSTEM > "/usr/local/jakarta-tomcat-4.1.12-LE-jdk14/conf/vhost.xml" > > ]> > <Server ... > *snip* > </Host> > %vhost; > </Engine> > </Service> > > FWIW, vhost.xml is a full <Host> subset. > > > Thanks! > > -Matthew > > > Jeanfrancois Arcand wrote: > > Oups (remove the quote) > > > > <!DOCTYPE web-app[ > > <!ENTITY vhost1 SYSTEM "/path/to/tomcat/conf/vhost1.xml"> > > > > ]> > > > > -- Jeanfrancois > > > > Jeanfrancois Arcand wrote: > > > >> I thin it should be defined like this: > >> > >> <!DOCTYPE web-app[ > >> <!ENTITY vhost1 SYSTEM "/path/to/tomcat/conf/vhost1.xml"> > >> > >> "]> > >> > >> I did not try it but that the way ENTITY works usually. > >> > >> -- Jeanfrancois > >> > >> Turner, John wrote: > >> > >>> Sorry, that should be > >>> <!ENTITY vhost1 SYSTEM "/path/to/tomcat/conf/vhost1.xml"> > >>> > >>> Typo in "vhost". > >>> > >>> John > >>> > >>> > >>> > >>>> -----Original Message----- > >>>> From: Turner, John [mailto:[EMAIL PROTECTED]] > >>>> Sent: Wednesday, January 08, 2003 11:42 AM > >>>> To: 'Tomcat Users List' > >>>> Subject: RE: DTD for server.xml?? > >>>> > >>>> > >>>> > >>>> That makes sense. OK, next question, in a thread > started yesterday, > >>>> it was > >>>> mentioned (correctly, I assume) that you could use XML > entities to > >>>> include > >>>> external XML files into server.xml. So, this link came > up on Google: > >>>> > >>>> http://tech.irt.org/articles/js212/#example_2 > >>>> > >>>> Which leads a person to believe that something like > >>>> <!ENTITY vhost SYSTEM "/path/to/tomcat/conf/vhost1.xml"> > >>>> > >>>> Then towards the bottom: > >>>> > >>>> &vhost1 > >>>> > >>>> would work in server.xml, but it doesn't. Error: > "Catalina.start: > >>>> org.xml.sax.SAXParseException: The content beginning "<!" is not > >>>> legal markup. " > >>>> > >>>> Is this a futile path, or is it possible to include > external XML into > >>>> server.xml when server.xml is parsed? If so, how? > >>>> > >>>> Thanks! > >>>> > >>>> John > >>>> > >>>> > >>>> > >>>>> -----Original Message----- > >>>>> From: Tim Funk [mailto:[EMAIL PROTECTED]] > >>>>> Sent: Wednesday, January 08, 2003 11:37 AM > >>>>> To: Tomcat Users List > >>>>> Subject: Re: DTD for server.xml?? > >>>>> > >>>>> > >>>>> It would be almost impossible to write a DTD for server.xml > >>>> > >>>> > >>>> since an > >>>> > >>>>> admin may inject custom classes (Listeners/Loggers). > >>>>> > >>>>> To have a dtd, we would need to know every property > which can be > >>>>> set for every class (which may be made known in > server.xml) since > >>>> > >>>> > >>>> tomcat uses > >>>> > >>>>> reflection from Diegester. > >>>>> > >>>>> -Tim > >>>>> > >>>>> Turner, John wrote: > >>>>> > >>>>> > >>>>>> Hello - > >>>>>> > >>>>>> I notice that the top of web.xml has: > >>>>>> > >>>>>> <?xml version="1.0" encoding="ISO-8859-1"?> > >>>>>> <!DOCTYPE web-app > >>>>>> PUBLIC "-//Sun Microsystems, Inc.//DTD Web > >>>>> > >>>>> > >>>> Application 2.3//EN" > >>>> > >>>> > >>>>>> "http://java.sun.com/dtd/web-app_2_3.dtd"> > >>>>>> > >>>>>> yet the top of server.xml has nothing. > >>>>>> > >>>>>> I'm very new to XML, so forgive me if this is a lame > or FA > >>>>> > >>>>> > >>>>> question, but is > >>>>> > >>>>> > >>>>>> there a DTD for server.xml? If so, why isn't it > specified > >>>>> > >>>>> > >>>>> in server.xml, > >>>>> > >>>>> > >>>>>> and what is the URL? Is server.xml "real, official > XML" or just > >>>>>> "convenience" XML? > >>>>>> > >>>>>> - John > >>>>>> > >>>>>> ============================================ > >>>>>> John Turner > >>>>>> [EMAIL PROTECTED] | 248-488-3466 > >>>>>> Advertising Audit Service > >>>>>> http://www.aas.com > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> To unsubscribe, e-mail: > >>>>> > >>>>> > >>>> <mailto:[EMAIL PROTECTED]> > >>>> > >>>> > >>>>> For additional commands, e-mail: > >>>>> > >>>> > >>>> > >>>> <mailto:[EMAIL PROTECTED]> > >>>> > >>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> To unsubscribe, e-mail: > >>>> <mailto:[EMAIL PROTECTED]> > >>>> For additional commands, e-mail: > >>>> <mailto:[EMAIL PROTECTED]> > >>>> > >>>> -- > >>>> To unsubscribe, e-mail: > >>>> <mailto:[EMAIL PROTECTED]> > >>>> For additional commands, e-mail: > >>>> <mailto:[EMAIL PROTECTED]> > >>>> > >>>> > >>> > >>> > >>> > >>> -- > >>> To unsubscribe, e-mail: > >>> <mailto:[EMAIL PROTECTED]> > >>> For additional commands, e-mail: > >>> <mailto:[EMAIL PROTECTED]> > >>> > >>> > >>> > >>> > >> > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > Matthew Boeckman (816) 777-2160 > Manager - Systems Integration Saepio Technologies > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>