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

Re: XPattern Specification


xpattern
* 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!

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.