The toolkit custom tag XMLQuery fails when cfsetting 
enablecfoutputonly is set to yes.

I a using CF 5.0.

As an example, the code snippet below works fine, as is.

But, if you uncomment line 13, XMLQuery fails at line 145.

This one took me about 5 hours to run down.

HTH

Dick

  1   <cfif not isdefined("session.xmlbasket")>
  2
  3     <cflock timeout="2" scope="session" type="exclusive">
  4       <cf_xmldatasource name="session.xmlbasket">
  5         <shoppingcart>
  6         </shoppingcart>
  7       </cf_xmldatasource>
  8     </cflock>
  9
10   </cfif>
11
12   <!---
13   <cfsetting enablecfoutputonly="yes">
14   --->
15
16   <cflock timeout="5" scope="session" type="exclusive">
17     <cf_xmlquery datasource="session.xmlbasket" name="FindProductID">
18        //item[@productid='4']
19     </cf_xmlquery>
20   </cflock>
21
22   <cfoutput>
23   <br>FindProductID.RecordCount....|#FindProductID.RecordCount#|
24   </cfoutput>

-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

Reply via email to