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

Re: What does SOAP really add?


soap generate unique id
Joshua Allen:

> I personally think that this idea of an "XML View" is a great way to
> webify a relational database and make all of the data universally
> addressable.  It is also consistent with RESTful idea of "mediated view"
> over a resource.  SQL data thus exposed is accessible from XSLT
> document() function, and all of the other GET clients.

Didier's described how the CMS I'm writing in Frontier for one of Apple's 
intranets handles editing. The pages are stored in Frontier's database as 
compiled XML, each editable component on a page can be described with an 
Xpath expression: /page/summary[@id = '0001']/para[@id = '0005'].

When a page is displayed on a browser in editing mode, each of those 
editable nodes has a GET URL:

/editing/content/get?path=/path/to/page&xpath=summary[@id = '0001']/para[@
id = '0005'] (URL encoding left out for clarity)

In practice, I'm using BSD's tool to generate unique id's for editable 
elements.

I then convert the Xpath to a Frontier database address: 
@sometable.path.to.page.["00001 summary"].["00005 para"], and fetch the 
CDATA for that node. That content is returned in a POSTable HTML form with 
the content, the page, and the XPath as parameters.

My current Xpath implementation is minimal, paying attention only to @id 
attributes as qualifiers, a full Xpath implementation in Frontier would be 
nice to have, but this works for now.

This architecture's allowed me to remove dependencies on Frontier at the 
client side. And since the data can be extracted from Frontier's databases 
back into valid XML, I have the flexibility to move to any other XML store 
on the server-side in the future.

On the performance side, we've achieved a 100-250% improvement by 
switching to Frontier's table model instead of the outline model the 
previous version of our CMS was using. The painful part has been getting 
export scripts to take the outlines and convert them to XML.

----
Bill Humphries <bill@w...>
http://www.whump.com/moreLikeThis/


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.