At 23:47 +0100 01-03-2005, Michiel Meeuwissen wrote:
Kees Jongenburger wrote:
 All sounds good. to achieve this we are currently missing some features
 -xml format for describing a complex data structure
 (something like an xml version of the taglibs, that allows things like
 max /related and a bit of scripting)

I think mm:formatter will actually spit out something using org.mmbase.bridge.util.xml.Generator. This is in other words an XML format describing a complex data structure, which can be fully generated by taglib itself.

<mm:formatter>
  <mm:node number="123">
     <mm:relatednodes type="news" max="5" />
   </mm:node>
</mm:formatter>

I got it actually working with (based on MyNews):

<mm:formatter format="presentxml">
  <mm:node number="default.mags">
     <mm:relatednodes type="news" max="5" />
   </mm:node>
</mm:formatter>

But this example just displays the node with alias 'default.mags' and 5 of its related nodes. The generated XML did not describe the relations between magazine and news nodes. For example like:

<relation id="62" otype="23" source="53" destination="61">
  <field format="integer" name="pos">1</field>
</relation>

Correct? Or can relations also be described with some taglib trick?

---Andr�
--
Andr� van Toly
http://www.toly.nl                                mobile +31(0)627233562
------------------------------------------------------------------>><<--
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to