RE: SPAM::Re: Re: Xinclude trouble
[email protected] Wed, 2 Mar 2005 08:54:08 -0600
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <AF4CBD49C827BA4F9BDD00E297CD804803884081@adsms01.dyn.datasys.swri.edu> |
Excellent! Adding the resource directory to the classpath solved the problem. Thank you both! Will -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, March 02, 2005 2:56 AM To: [email protected] Subject: SPAM::Re: [Forum] Re: Xinclude trouble List for Users of Carlsbad Cubes' Technologies and Products <[email protected]> schrieb am 02.03.05 05:48:17: > > AFAIK, (unless you create a custom resourceloader) you will have to > specify the whole path starting from the dir where the JVM starts. No, it is definetly not *that* hard. I use the path starting from my resource dir which is included in the classpath -- which is IMHO generally a good idea. E.g. include="xml/apply-ok-cancel-panel.xml#applyokcancel" loads the specified section of the specified file at the current position. The whole path is $project/resource/xml/... where $project/resource is included in the classpath. Frank > > HTH, n. > > On Tue, 1 Mar 2005 [email protected] wrote: > > >Was there any resolution to the problem? I'm encountering the same > >thing. It appears to be a problem with getting the correct path > >specified in the include attribute. I'm specifying a relative path > >just as Tristan did, although I'm not sure what class / SwixML file > >the path should be relative to. > > > >Any advice or links for further reference would be greatly > >appreciated. > > > >Will > > > >"Tristan Richard" <[email protected]> wrote in message > >news:[email protected]... > >> Yes, without any trouble > >> > >> Wolf Paulus a écrit : > >> > Tristan, > >> > Can you run the sample? > >> > > >> > On May 5, 2004, at 4:28 PM, Tristan Richard wrote: > >> > > >> >> Hi, > >> >> > >> >> I am trying to use the XInclude feature, but I don't manage to > >> >> make it happen... > >> >> > >> >> my call is from com/soft/iseult/iseult/gui/MainMenu.xml, > >> >> rendered by the class com/soft/iseult/iseult/gui/MainMenu > >> >> <menubar> > >> >> ... > >> >> <menu id="inputMenu" text="menu.input" mnemonic="VK_E" > >> >> include="ListsMenuFragments.xml#INPUT_IO_ACTIONS"/> > >> >> ... > >> >> </menubar> > >> >> > >> >> and ListsMenuFragments.xml (in the same > >> >> com/soft/iseult/iseult/gui > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com _______________________________________________ Forum mailing list [email protected] http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com