[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 do action" where condition cannot be evaluated until data arrives later
From: "Andre Cusson akhu01@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Dec 2022 17:02:01 -0000
Re:  Re: How to express this in XPath: "when condition
Hi,

Graydon's approach seems the simplest.
Alternatively, one could build a temporary tree/file of the info on cars
not yet reported as stolen, which gets updated/processed anytime a police
report comes in.

Regards.

Le mar. 20 dC)c. 2022, C  08 h 58, Graydon graydon@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> a C)crit :

> On Tue, Dec 20, 2022 at 01:46:22PM -0000, Roger L Costello
> costello@xxxxxxxxx scripsit:
> > Let me relax my requirement that the "when condition do action"
> functionality be implemented exclusively in XPath. Let's also allow XSLT.
> Also, let's allow extension functions.
> >
> > Given those relaxed requirements, could the functionality that I seek be
> implemented like this:
> >
> > Read the next XML document.
> > If the XML document contains data about cars then
> >     Call an XSLT function, f:waitForPoliceReport()
>
> Why not run the XSLT in response to the police report arriving?
>
> It's easy to consume the police report (presumably into a map) and then
> do the processing on the other data source.
>
> It looks like all the difficulty comes in because you're thinking of the
> conceptual "processing is delayed for the report" as something that has
> to be implemented literally.
>
> --
> Graydon Saunders  | graydonish@xxxxxxxxx
> CC&s oferC)ode, C0isses swC! mC&g.
> -- 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.