Re: Using XInclude in tomcat's config files
Pawson, David wrote: Does your parser support xml:base? "My parser"? We're talking about the xerces parser embedded in Tomcat, reading the configuration files for Tomcat and its webapps (not a parser used by an application hosted by Tomcat). If there's any way to control the instantiation or behavior of that parser, I'd like some pointers. Anyway, thanks for the help and suggestions so far. Looks like a bit more research is needed, alas.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
On Tue, Oct 05, 2004 at 07:55:02AM +0100, Pawson, David wrote: ::Oh, that's what we are doing now, but entity resolution ::doesn't have a concept of relative paths. : Does your parser support xml:base? : That makes relative paths work. True; but what would the base path be? You've likely seen all of the posts here concerning "relative paths within a webapp" and "how to determine the webapp's full filesystem path." If a person wants a completely self-contained WAR file they can drop into any Tomcat instance, constructing the various config files at build time is the way to go. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using XInclude in tomcat's config files
-Original Message- From: Shankar Unni > Try an entity instead of xinclude? Not many parsers are good for > xinclude as yet (a mainly uninformed statement). Entity resolution is > easier if the parser is setup correctly. Oh, that's what we are doing now, but entity resolution doesn't have a concept of relative paths. Does your parser support xml:base? That makes relative paths work. All in all, entity includes are inflexible and a terrific pain to work with. Its an alternative. regards DaveP -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
Pawson, David wrote: Try an entity instead of xinclude? Not many parsers are good for xinclude as yet (a mainly uninformed statement). Entity resolution is easier if the parser is setup correctly. Oh, that's what we are doing now, but entity resolution doesn't have a concept of relative paths. I.e. if you have a file called "/path/to/foo.xml", which does an entity include of "file:../somewhere/params.dtd", then the path is not interpreted in relation to its including file (i.e. as "/path/to/../somewhere/params.dtd"), but instead in relation to "$cwd" (i.e. it's literally opened as "../somewhere/params.dtd"). This makes it nearly useless, as you are *forced* to "cd" to "/path/to" before you can process the "foo.xml" file. On the other hand, if you use absolute path names, that makes it difficult to move the files around. All in all, entity includes are inflexible and a terrific pain to work with. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using XInclude in tomcat's config files
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Sent: 01 October 2004 21:44 Alas, that didn't help. I tried setting both org.xml.sax.parser and org.apache.xerces.xni.parser.XMLParserConfiguration (the latter one being the one described in the Xerces XInclude FAQ at http://xml.apache.org/xerces2-j/faq-xinclude.html) on the java command line to "org.apache.xerces.parsers.XIncludeParserConfiguration", but neither seems to have had the least effect. The http://www.w3.org/2003/XInclude"/> is completely ignored in my server.xml, and it is as if this directive weren't even present. (The file contains a root element for insertion into the that I've declared in server.xml). Anything else I can try? Try an entity instead of xinclude? Not many parsers are good for xinclude as yet (a mainly uninformed statement). Entity resolution is easier if the parser is setup correctly. I'm not familiar with xinlude, but are you OK to use relative url's in the href attribute? Does it need a file:// protocol? HTH DaveP. -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
Shankar Unni wrote: Haven't tried it, but have you set the: org.xml.sax.parser=org.apache.xerces.parsers.XIncludeParserConfiguration Ah. No. Thanks for that clue. Let me go back at it.. Alas, that didn't help. I tried setting both org.xml.sax.parser and org.apache.xerces.xni.parser.XMLParserConfiguration (the latter one being the one described in the Xerces XInclude FAQ at http://xml.apache.org/xerces2-j/faq-xinclude.html) on the java command line to "org.apache.xerces.parsers.XIncludeParserConfiguration", but neither seems to have had the least effect. The http://www.w3.org/2003/XInclude"/> is completely ignored in my server.xml, and it is as if this directive weren't even present. (The file contains a root element for insertion into the that I've declared in server.xml). Anything else I can try? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
Robert Koberg wrote: Haven't tried it, but have you set the: org.xml.sax.parser=org.apache.xerces.parsers.XIncludeParserConfiguration Ah. No. Thanks for that clue. Let me go back at it.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
Shankar Unni wrote: Shankar Unni wrote: Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? Bump? No one's tried this yet? Haven't tried it, but have you set the: org.xml.sax.parser=org.apache.xerces.parsers.XIncludeParserConfiguration ? best, -Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
On Thu, Sep 30, 2004 at 02:35:35PM -0700, Shankar Unni wrote: : >Is it possible to configure Tomcat to be able to use XInclude to include : >fragments of XML into Tomcat's own configuration files (server.xml, the : >various webapp web.xml's, etc.)? : : Bump? No one's tried this yet? I'll give it a try: do the include magic at build time, with some clever (or not-so-clever) Ant action. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using XInclude in tomcat's config files
Shankar Unni wrote: Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? Bump? No one's tried this yet? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]