Re: simple rdf templat e query
"rvj" <[email protected]> Sun, 30 Mar 2008 10:43:41 +0100
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Message-ID | <[email protected]> |
I guess a single generation solution is some kind of rule that checks that the descendents of a "ref" node have an immediate parent with the ref id? similarly if you need a two generation search you would add a second rule that checks that the parent of the immediate parent of a descendent has the target ref id ? Is this possible? ... or is it simpler than this ?? "rvj" <[email protected]> wrote in message news:[email protected]... > given a datsource how do you limit the child to just the immediate child > of the ref (node) > > <seq id="root"> > <seq ref="node"> > <seq text="1a"> > <seq text="1a1a"> > <seq text="1a1b"> > ............. > > <seq text="1b"> > <seq text="1b1a"> > <seq text="1b1b"> > .................. > > > in other words I only want to generate > > 1a > 1b > > > is there some kind of depth rule that limits the scope? >