[Zope] Tree tag and xmlDocument

Amos Latteier amos@aracnet.com
Wed, 06 Oct 1999 13:38:31 -0700


At 11:14 AM 10/6/99 -0500, Phillip J. Eby wrote:
>At 04:02 PM 10/6/99 +0100, Phil Harris wrote:
>>
>><dtml-tree test_xml>
>>  <dtml-var getTagName>
>></dtml-tree>
>>
>>Show's a tree of the tagnames, (easy enough to change what is shown for each
>>tag).
>>
>>However I only want the <header>'s to show up in the tree, at the moment all
>>of the items are being rendered in the tree.
>>
>>Any Ideas.
>>
>
>try using:
>
><dtml-tree test_xml branches_expr="someDOMexprtosearchfortagslike('header')">
>
>Where 'someDOMexprtosearchfortagslike('header')' should be changed to the
>appropriate XML DOM expression to be called on each tag that will return a
>list of subtags whose type is 'header'.  :)

Which would be "objectValues('header')".

-Amos

P.S. XML Documents are more similar to standard Zope objects than your
might think ;-)

P.P.S. XML Document comes with a README.txt Check it out, especially the
"ObjectManager API support" section.