[Zope] Tree tag and xmlDocument
Phil Harris
phil@philh.org
Wed, 6 Oct 1999 22:20:29 +0100
Amos,
I'm sure I tried that with no joy but the stuff is at my workplace right
now.
I'll try again in the morning, and let you know.
Phil
phil@philh.org
-----Original Message-----
From: Amos Latteier [mailto:amos@aracnet.com]
Sent: 06 October 1999 21:39
To: Phillip J. Eby
Cc: zope@zope.org; Phil Harris
Subject: Re: [Zope] Tree tag and xmlDocument
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.