[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-rdf
Subject:    Re: bug in template expansion in menupopup?
From:       Trent Mick <trentm () ActiveState ! com>
Date:       2000-07-17 14:27:45
[Download RAW message or body]

> 
> > Here is my simple RDF file:
> >
> > ------------- test.rdf ----------------------------
> > <?xml version="1.0"?>
> >
> > <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> >          xmlns:nc="http://home.netscape.com/NC-rdf#">
> >
> >   <rdf:Description about="urn:root">
> >     <nc:links>
> >       <rdf:Seq>
> >         <rdf:li><rdf:Description nc:name="un" /></rdf:li>
> >         <rdf:li><rdf:Description nc:name="deux" /></rdf:li>
> >         <rdf:li><rdf:Description nc:name="trois" /></rdf:li>
> >         <rdf:li><rdf:Description nc:name="quatre" /></rdf:li>
> >       </rdf:Seq>
> >     </nc:links>
> >   </rdf:Description>
> >
> > </rdf:RDF>
> > ---------------------------------------------------
> >
> > Here is my XUL:
> >
> > -------------- test.xul --------------------------
> > <?xml version="1.0"?>
> > <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
> >
> > <window
> >   id="rdftest-window"
> >   title="RDF Test"
> >   xmlns:html="http://www.w3.org/TR/REC-html40"
> >   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> >   orient="vertical">
> >
> >   <box orient="vertical">
> >     <menu value="test menu">
> >       <menupopup datasources="test.rdf" ref="urn:root" flex="1">
> >         <template>
> >           <rule>
> >             <conditions>
> >               <content uri="?uri" />
> >               <triple subject="?uri"
> >                 predicate="http://home.netscape.com/NC-rdf#links"
> >                 object="?links" />
> >               <member container="?links" child="?child" />
> >               <triple subject="?child"
> >                 predicate="http://home.netscape.com/NC-rdf#name"
> >                 object="?name" />
> >             </conditions>
> >             <action>
> >               <menuitem value="hello there" flex="1"/>
> >               <menuitem value="hello there again" flex="1"/>
> >               <menuitem uri="?child" value="?name" flex="1"/>
> >               <menuitem value="hello there after" flex="1"/>
> >             </action>
> >           </rule>
> >         </template>
> >       </menupopup>
> >     </menu>
> >   </box>
> >
> > </window>
> > ---------------------------------------------------
> >
> > I get a menupopup with the following items:
> >
> > - hello there
> > - un
> > - deux
> > - trois
> > - quatre
> >
> > I.e. Any of the static menuitems except the first do not show up. Am I
> > missing something? SHould I file a bug report for this? If the latter, what
> > is the likelihood of this getting fixed.


On Mon, Jul 17, 2000 at 06:03:48AM -0400, Arthur Barstow wrote:
> Hello - I tried your example on M16 and Mozilla and the viewer both
> just hung (and eventually dumped core).  On M14 the output I get is
> the string "text menu".  So, I'm wondering - which version of Mozilla
> are you using?  Also, do you just give Mozilla the URI for the XUL file?
> 

I believe that I am using the CVS sources very soonafter M16. No guanrantees
for M14 (I think I remember some limitations in RDF-land that were fixed
for M16).  Re URI: I am placing the XUL in the chrome dir and using a valid
chrome URI. Note that I am using the Win32 build on WinNT 4.0 and I have
not tried this on Linux, etc.


Hope this helps,
Trent

p.s. I'll be away and notable to respond this week.

-- 
Trent Mick
trentm@activestate.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic