RE: re: DOM Exposed to DTML

[email protected] Fri, 01 Nov 2002 09:00:37 -0800
Newsgroups gmane.comp.web.zope.parsed-xml
Message-ID <AA7A72A46469D411B8B300508BE3295005431A97@desi2>
What version are you using?  Make sure you are using ParsedXML 1.3.  It uses
expat from PyXML!

Sean

-----Original Message-----
From: Damien Connolly [mailto:[email protected]]
Sent: Thursday, October 31, 2002 7:20 PM
To: [email protected]; [email protected]
Subject: RE: [Parsed-XML-Dev] re: DOM Exposed to DTML



	Hmmmm well I've imported the examples and all appeared well.
However I just tried to alter 
	some of the XML in the slide demo and I get the error .... 

	Error Type: AttributeError
	Error Value: value 

	Which seems weird because all I did was open the XML and then
click Save Changes. 

	I am thinking this may have happened because I had to make some
changes to my 
	pyexpat.c in order to get ParsedXML to build.

	I used the Python that came with Zope.

	I renamed the directory to ParsedXML 

      I put it under Products. 

	When I did my install It gave me ... 

	../pyexpat.c: In function 'call_with_frame':
      ././pyeexpat.c:365  too many arguments to function 'PyFrame_New'
      make: *** [pyexpat.o] Error 1

	To fix this I changed line 365 removing the extra arguments ;) 

      But I am wondering if that was the right thing to do.

	I imagine it it was why I can't save XML ... ;o 

	___________________________ 
	Damien Connolly 
	Development Engineer 
	Right Hemisphere 
	www.righthemisphere.com 
	NZ Ph: +64.9.523.4670 
	NZ Fax: +64.9.523.4671
	___________________________ 




-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, 1 November 2002 1:45 p.m.
To: Damien Connolly; [email protected]
Subject: RE: [Parsed-XML-Dev] re: DOM Exposed to DTML


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