Forum OpenACS Development: Re: tDOM and Dom Objects on Server Load problem

Posted by Peter Vessenes on
Okay, script 1:
ns_share temp_xsl_doc catalogxml

ns_eval dom parse -simple  {$template_index_xsl} temp_xsl_doc
ns_eval dom parse -simple {$myxml} catalogxml
Script 2:
ns_share temp_xsl_doc catalogxml
$catalogxml xslt $temp_xsl_doc return_html
ns_return 200 text/html [$return_html asHTML ]
invalid command name "domDoc0xbd51b38"
    while executing
"$catalogxml xslt $temp_xsl_doc return_html"
    ("uplevel" body line 157)
    invoked from within
"uplevel {...
It looks to me like ns_eval is a nice idea, but tdom is doing something funky which makes this a no go. I'll try it with -sync first, but if not, then I'll have to check out the thread extensions. Can anybody see any errors here?