[Zope] Tree tag and xmlDocument
Phillip J. Eby
pje@telecommunity.com
Wed, 06 Oct 1999 11:14:20 -0500
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'. :)