Re: XPattern Specification
* david.lyon@c... <david.lyon@c...> [2005-01-19 00:04]: > > Can't we think about how we'd use the langauge? Taking about > > what we want to scratch out of XPath is jumping the gun. > > > > > I don't want to have you think that I'm suggesting an STX or > > XUpdate like language, so much as I am considering applications. > > If anybody can put together a "Grid" language for xml, that > would be useful. > > Take for example, a price update event, that comes out of > a diff and looks like: > > <Product Item> > Product_ID&="74332" > Name&="IBM A50 DT P4 3EGHz 256MBDDR 40GB CD XPP" > Availability&="InStock" > - List_Price$=1183.00 > + List_Price$=1147.00 > </Product Item> > > How could that be taken and then applied as an 'event' onto > an inventory system? > > I know it's not a "generic" problem, rather a specific one, > but price changes do happen an awful lot in the real world > and it would be cool to have some sort of clever solution to > this. > > To translate what is required, a price has changed in a > supplier catalog and the inventory system would need to > be updated in real-time. > > Throughout the day, there are thousands of these darn > events. The word diff scares me. One obvious extension for XPattern is subsitutions. But it implies streaming the file, which doesn't seem to make sense in this case. (Another reason why slash (/) doesn't make sense for XPattern, is that you can't use the same notation for emitting nodes in a subsitution.) I'm wondering what happend to XUpdate (something I was wondering quite actively last year) and if XQuery supports an update, insert, delete syntax. Something like that is more along the lines of what you need. -- Alan Gutierrez - alan@e...
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format