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

Re: [Summary] Characterization of Schematron - Usage and Featu

  • From: "Peter Hunsberger" <peter.hunsberger@g...>
  • To: "bryan rasmussen" <rasmussen.bryan@g...>
  • Date: Wed, 24 Jan 2007 17:00:45 -0600

Re:  [Summary] Characterization of Schematron - Usage and Featu
On 1/24/07, bryan rasmussen <rasmussen.bryan@g...> wrote:

<snip/>

> The algorithmic check is more along the lines of:
>
> A textnode has data that can be validated using a well-known algorithm
> such as a modulus 10 function. As such it can not be done via
> Schematron, however in most actually occuring markup situations we do
> not have just a textnode, we have a textnode that has some other
> information represented by the markup pertinent to that textnode, such
> as  this textnode that can be validated via the modulus 10 function is
> a social security number, as such the algorithm can be applied because
> we know when we have to stop, we do not have to loop until we stop.
>
> Basically this is something one might like to see in a datatype
> defining language, and in fact if I understand my cursory scanning of
> the DSDL Datatype Library language the same method could be used to
> define datatypes conforming to a particular algorithm (can anyone
> correct me if I'm wrong on this?)
>
> This, as opposed to your example, is actually not something Schematron
> is especially good at, it is something of a Stupid Schematron trick
> given that writing these by hand is onerous and it is probably best to
> either autogenerate the expression or move up a level to do the check.
>  This is actually why I brought it up because I was pretty sure there
> would be very few people that were using Schematron to do stuff like
> check that something purporting to be an EAN location number actually
> conformed to the algorithm for checking EAN location numbers.
>
> That said I think that using Schematron for this while not optimal
> points to some possible benefits, the fact that it is declarative and
> obviously easier for a program to analyse. There is obviously no
> halting problem in the schematron assertion I sent before.
>

Using XSLT 2.0 and xPath 2.0 with Schematron can make this kind of
thing more-or-less trivial for a lot of cases... :-)

-- 
Peter Hunsberger


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