simple rdf templat e query

"rvj" <[email protected]> Sun, 30 Mar 2008 08:51:57 +0100
Newsgroups gmane.comp.mozilla.devel.rdf
Message-ID <[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?