XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steven FancherSubject: Stopping running xquery in R2
Author: Steven Fancher
Date: 31 Mar 2006 06:42 PM
Where did the CANCEL button present in R1 go?

Other that shutting down the application by brute force, I can't seem to find a way to stop a non responsive xquery.

THis seems to me mostly a problem using the SAXON processor...

Postnext
Minollo I.Subject: Stopping running xquery in R2
Author: Minollo I.
Date: 31 Mar 2006 10:43 PM
The Cancel button is still there; it is possible that the nature of the query is preventing it from being active/responsive when using Saxon... any chance you can attach or email us (stylus-field-report@progress.com) the XQuery/XML documents you are using?

Thanks,
Minollo

Postnext
Steven FancherSubject: Stopping running xquery in R2
Author: Steven Fancher
Date: 05 Apr 2006 08:38 AM
Here's the Query that appears to hang Saxon.

BTW where is the cancel button? it used to be next to the blue progress bar thing...

=============

declare namespace util ="java:QueryHelpers";

<test name="Validate hostnames, loopbacks, and DNS">

<Rules>

1. The device name in Intelliden MUST match the device's configured host and domain
2. The IP address returned by DNS MUST match the lo0 address of the device
3. The reverse DNS name of lo0 must match the device's configured host and domain

</Rules>

<Notes>

"The 'Intelliden' element is the name that Intelliden used to acquire the device."
"The 'hostname' element is the configured hostname + domain name of the device."
"The 'loopback' element is the IP address of Loopback0 configured on the device."
"The 'DNSForward' element is the value returned when the hostname is looked up in DNS."
"The 'DNSReverse' element is the value returned by DNS when the loopback0 addtess is queried."

</Notes>

{
for $host in ./Devices/device
let $deviceName := $host/name/text()
let $hostpart := string($host/configuration/hostname/*)
let $domainPart := string($host//configuration/ip/domain-name/*)
let $hostname := concat($hostpart,".",$domainPart)
let $DNSAddress := util:resolveForwardDNS($hostname)
let $loopback := data($host//configuration/interface/Loopback[ARG.001 = 0]/ip/address/ARG.001)
let $reverse := util:resolveReverseDNS($loopback)
where $host/state[@name = "OK"]
return
if( ($deviceName eq $hostname) and ($DNSAddress eq $loopback) and ($reverse eq $hostname) )
then ()
else
<Failed>
<deviceId>{$deviceName}</deviceId>
<hostname>{$hostname}</hostname>
<loopback>{$loopback}</loopback>
<DNSForward>{$DNSAddress}</DNSForward>
<DNSReverse>{$reverse}</DNSReverse>
</Failed>
}
</test>

Posttop
Minollo I.Subject: Stopping running xquery in R2
Author: Minollo I.
Date: 05 Apr 2006 09:04 AM
Any chance you can send us also the XML document you are using as input?

Thanks,
Minollo

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.