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

RE: RE: Concerned about the increasing reliance on XPath

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 09 May 2011 18:06:29 -0400

RE:  RE: Concerned about the increasing reliance on XPath
At 2011-05-09 17:50 -0400, Liam R E Quin wrote:
>In most cases there's not much point carrying around precomputed values
>- see Third Normal Form for relational databases for why duplicated
>information is usually a warning flag.  But computing it on the fly,
>processing the augmented document, and then checking the constraints
>still hold, that's another matter.

It is an explicit rule in UBL that *all* computed values are 
expressed in the XML with their final calculated value.  A recipient 
cannot be expected to do any calculation and can only be expected to 
use the evident values found in the UBL document.

Another benefit is that this makes stylesheet writing very generic as 
the stylesheet knows exactly where the information is in the source 
XML and where it belongs in the result rendering but doesn't have to 
know how the values are calculated.

>I would almost certainly expect to have the logic _outside_ the document
>in most cases

Exactly ... we've called that "the calculation model".  A community 
of users needs to agree on that community's calculation model for 
element values found in a UBL document.  Knowing the calculation 
model is good for a recipients validation of the values.

Different communities will have different calculation models for any 
given value in UBL.  It is not up to the standards committee to tell 
users how they have to calculate any particular value.  Just think 
how complex tax rules are in different communities, for example.

But if you don't know the calculation model, you have the numbers to work with.

. . . . . . . . . . Ken

--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



[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.