RE: re: DOM Exposed to DTML
[email protected] Thu, 31 Oct 2002 16:44:43 -0800
| Newsgroups | gmane.comp.web.zope.parsed-xml |
|---|---|
| Message-ID | <AA7A72A46469D411B8B300508BE3295005431A95@desi2> |
Yes, it is.
Suppose you have a parsedXML doc with the following structure:
<foo><bar/></foo>
Try this:
<dtml-with "xmldoc.childNodes[0]">
<dtml-in "getElementsByTagName('bar')">
<dtml-var tagName>
</dtml-in>
</dtml-with>
Honestly, though, I think page templates and Python Scripts do the job much
better (you could certainly use Page template in a role parallel to XSLT),
and write special purpose node-traversal mechanisms in Python Scripts.
Sean
-----Original Message-----
From: Damien Connolly [mailto:[email protected]]
Sent: Thursday, October 31, 2002 4:29 PM
To: [email protected]
Subject: [Parsed-XML-Dev] re: DOM Exposed to DTML
Is the XML Dom exposed so that I can access it via dtml. If so
how ? :)
___________________________
Damien Connolly
Development Engineer
Right Hemisphere
www.righthemisphere.com
NZ Ph: +64.9.523.4670
NZ Fax: +64.9.523.4671
___________________________
_______________________________________________
Parsed-XML-Dev mailing list
[email protected]
http://lists.zope.org/mailman/listinfo/parsed-xml-dev