Thanks for the replies - I do prefer the method outlined by Ruud from a
readability viewpoint.

Michiel, just to give you a viewpoint from an outsider developer's point of
view - of the 400 hours I put in last month (not joking), about 40 were
spent on mmbase, writing servlets - very unfamiliar territory with a fair
number of re-attempts.  2am, tired, stretched to the limit, suddenly there
is something out of the ordinary and I panic, wondering whether mmbase will
cope - all the initial study having left my fairly porous memory long ago
and having only done the basics and looked at examples that do the basics,
we end up here - something rather trivial for you.  So, apologies for
trivial questions, but your answers are a lifesaver and greatly appreciated.

Regards
Emile

----- Original Message -----
From: "Michiel Meeuwissen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 2004 5:34 AM
Subject: Re: nested related nodes


> Emile wrote:
> > is there is simple approach to deriving the start node of a path for
related
> > nodes if in fact the tag is within another relatednodes tag, for
example:
> >
> >   <mm:relatednodes type="data_profile">
> >    <mm:relatednodes ???nodes="data_profile"??? role="posrel"
> > type="data_profile_fields">
> >     <tr><td><mm:field name="field_name" /></td></tr>
> >    </mm:relatednodes>
> >   </mm:relatednodes>
> >
> > Many thanks
>
> The start node is the node of the surrounding node. Here I demonstrate 2
> ways to show it:
>
> <mm:relatednodes id="startnode" type="data_profile">
>   startnode number: <mm:field name="number" />
>   <mm:relatednodes role="posrel" type="data_profile_fields">
>      <tr><td><mm:field name="field_name" /> of <mm:field node="startnode"
name="number" /></td></tr>
>    </mm:relatednodes>
> </mm:relatednodes>
>
> But perhaps I don't really understand your problem because this seems
> trivial (perhaps the 'node' attribute is less so, and you mean that).
>
>  Michiel
>
>
> --
> Michiel Meeuwissen                  mihxil'
> Mediacentrum 140 H'sum                [] ()
> +31 (0)35 6772979         nl_NL eo_XX en_US
>
>
>
>
>
>


Reply via email to