[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: How to express this in XPath: "when condition

Subject: Re: Re: How to express this in XPath: "when condition doaction" where condition cannot be evaluated until data arrives later
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Dec 2022 14:29:52 -0000
Re:  Re: How to express this in XPath: "when condition
Hi Roger ---

On Tue, Dec 20, 2022 at 02:20:26PM -0000, Roger L Costello
costello@xxxxxxxxx scripsit:
> I am implementing an application that processes a sequence of XPath
> expressions. Some XPath expressions can be evaluated immediately
> because all the data is present in full. However, in some cases not
> all the data is present in full. In my car example, the decision to
> output the license plate number or null cannot be made until the
> relevant police report arrives, which may occur at some time in the
> future. So evaluating the XPath for the car example must pause until
> the police report arrives.

Or it could fail and be re-run periodically?

It makes sense that you want to wait on an external event before
returning a result.  In a declarative expresion language that avoids
side-effects, you're going to have to fight with it a lot if you try to
implement that in a literal way.

What happens if the police report never arrives?


-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.