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?
Subject: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>