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

Re: How to avoid data duplication in schematron files?

  • From: Andrew Sales <andrew@andrewsales.com>
  • To: Svante Schubert <svante.schubert@gmail.com>
  • Date: Mon, 15 Apr 2019 12:13:55 +0100

Re:  How to avoid data duplication in schematron files?
Hi Svante, just to mention - there is also a Schematron mailing list now:

Regards,
Andrew 

On Mon, 15 Apr 2019 at 09:00, Svante Schubert <svante.schubert@gmail.com> wrote:
I have recently started to take a closer look at the EU e-invoice schematron validator and need some tip how data duplication could be avoided in this project (find some basic background in the end of the email).
In this project some schematron files are quite identical for different formats, as the rules to be tested rely on the semantic model or on common parts called code lists.
I already described the problem in an issue, but it was closed, I fear due to the lack of knowledge how to handle it. Therefore I would like to provide an example, as I believe it should work somehow..

Let's take a look at the two code list files, being close to equal:
The files should only differ in the context being used.

It's been more than fifteen years since I used XPath/XSLT, so I was a little rusty, but I thought the 'calling' schematron file 
should simply provide the context as parameters, like a module is calling a sub-module.
It did not work out, as <sch:include> does now allow any children such as parameter.
You may see my erroneous approach as GIT diff, making the schematron pattern abstract and providing the varying context from the caller.

Could someone point me into a problem-solving direction, please?

Thanks in advance,
Svante

PS: Some basic background:
The EU requires from its member states to accept electronic XML invoices either based on UBL or CII (UN/CEFEACT cross-industry invoice) called EN 16931.
The elegant trick they have been using is to define a semantic model and map it to each XML format. The first two parts of the spec are free available, the mapping is not.

  






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