Re: Xinclude trouble

[email protected] Tue, 1 Mar 2005 14:41:13 -0600
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization SwRI
Message-ID <[email protected]>
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
> >> package) looks like :
> >> <?xml version="1.0" encoding="UTF-8" ?>
> >> <list>
> >>     <menu id="INPUT_EDIT_ACTIONS">
> >>         <menuitem action="processCopyAction"/>
> >>         <menuitem action="processMoveAction"/>
> >>     </menu>
> >>     <menu id="INPUT_IO_ACTIONS">
> >>         <menuitem action="addDirAction"/>
> >>         <menuitem action="addImgAction" accelerator="control O"/>
> >>     </menu>
> >> </list>
> >> <list type="OUTPUT">
> >>     <menu id="OUTPUT_EDIT_ACTIONS">
> >>         <menuitem action="transferCopyAction"/>
> >>         <menuitem action="transferMoveAction"/>
> >>     </menu>
> >>     <menu id="OUTPUT_IO_ACTIONS">
> >>         <menuitem action="outputDirAction" accelerator="control S"/>
> >>     </menu>
> >> </list>
> >> </list>
> >>
> >> But whatever I change the include call to (I tried to prefix it with
> >> the name of the package), I get that error :
> >> org.jdom.input.JDOMParseException: Error on line 1:
> >> java.lang.NullPointerException
> >> java.lang.Exception: Invalid SwiXML Descriptor.
> >>     at org.swixml.SwingEngine.render(Unknown Source)
> >>
> >> Has anyone had better success with XInclude?? Because with the only
> >> sample released, I don't see where I'm wrong
> >>
> >> Thx,
> >> Tristan
> >>
> >>
> >> _______________________________________________
> >> Forum mailing list
> >> [email protected]
> >> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com