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

RE: Validate **against** a schema OR validate **with** a

  • From: "Michael Kay" <mike@s...>
  • To: "'Ken Starks'" <ken@l...>
  • Date: Fri, 23 Jan 2009 11:12:54 -0000

RE:  Validate **against** a schema OR validate **with**      a
> >  Another point which SQL got right is
> > that you can use the same language to define queries as to define 
> > views, so once you have a working query you can treat its 
> result as a 
> > view. This of course demands closure...
> 
> Correct me if I'm wrong, but isn't there still a bit of 
> confusion about whether a query and a view are always the same thing.
> 
> Many ( ? most )  databases will  allow a view to have an 
> ORDER BY statement, and will  preserve the ordering, wheras 
> SQL tables are not supposed to have any particular order. I'm 
> a bit nervous about relying on this, but it seems to work, 
> and it is often convenient.

Yes, SQL doesn't implement the pure relational model, and allowing tables to
be ordered is one example of that, and allowing ordering in a view but not
in base table does indeed violate closure.

> 
> In a current project, I am getting XML from a 'ordered' view, 
> and I could in principal do some sorting in three places: 
> when defining the view, when querying the view, or when 
> passing the XML through XSLT. Which is better ? 

I'm a pragmatist. Push the processing to the database if it can cope with
it, pull it back to the application if it can't. Do what works. Do what best
meets your project objectives, e.g. performance vs potential for change.

Michael Kay
http://www.saxonica.com/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.