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

Re: XML Design for Diverse Data

  • From: George Cristian Bina <george@o...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Wed, 23 Apr 2008 14:48:11 +0300

Re:  XML Design for Diverse Data
Hi,

One should be able to obtain the document fragments that go to each 
validate action based on the NVDL script (the result of the dispatching 
part of NVDL).
An XSLT 2.0 implementation of NVDL that performs only the dispatching 
part, that is it extracts document fragments associated with each schema 
is available as part of oNVDL:
http://www.oxygenxml.com/onvdl.html
One can use the NVDL as a filter to get only the desired document 
fragment and pass that for further processing to the code that expects 
only that as input.

Best Regards,
George
--
George Cristian Bina
http://www.oxygenxml.com



Costello, Roger L. wrote:
> Hi Bryan,
> 
> Here's a summary of Bryan's message:
> 
> Consider this XML:
> 
>    <payment>
>        <paymentpart>20</paymentpart>
>        <paymentpart>45</paymentpart>
>    </payment>
> 
> A programmer may write code to sum each value in <payment>, e.g.
> 
>    sum = 0
>    loop through payment
>       sum = sum + paymentpart
> 
> With NVDL new elements may be introduced within <payment> and thus the
> programmer's code may fail.
> 
> Bryan, is that a fair summary?
> 
> Here are some thoughts:
> 
> NVDL changes this content model:
> 
>    <payment>
>        <paymentpart>20</paymentpart>
>        <paymentpart>45</paymentpart>
>    </payment>
> 
> Into this content model:
> 
>    <payment>
>        -- zero or more other-ns elements --
>        <paymentpart>20</paymentpart>
>        -- zero or more other-ns elements --
>        <paymentpart>45</paymentpart>
>        -- zero or more other-ns elements --
>    </payment>
> 
> That is, it changes a closed content model into an open content model.
> 
> Thus, if a programmer writes code assuming the first (closed) content
> model then his code is likely to fail.
> 
> The problem is with the programmer's misunderstanding of the content
> model, not a problem with NVDL.
> 
> What is exciting to me is that NVDL changes all schemas (XML Schema or
> Relax NG) from a closed content model to an open content model, without
> any changes to the schemas!.  To state it a bit dramatically:
> 
>      NVDL unlocks closed schemas!
> 
> 
> Comments?
> 
> /Roger
> 
> _______________________________________________________________________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> 


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