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

Re: Recommended way to extend Schematron?

  • From: Jim Melton <jim.melton@oracle.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Wed, 08 May 2013 14:37:19 -0600

Re:  Recommended way to extend Schematron?
Roger,

Being only slightly snarky (in my first 
suggestion), I can suggest three possibilities that may be worth consideration:

1) XQuery 1.0 is computationally complete and can 
be used to write functions that perform those 
calculations; under several implementations, it 
is possible to invoke those functions from XPath 2.0 expressions.

2) XPath 3.0 ("Coming Soon to a Theater Near 
You™") has those particular functions built in, 
as well as even more mechanisms for defining them 
natively; there are several implementations of 
XPath 3.0 (and XQuery 3.0), even though we're 
still at the tail-end of the Candidate Recommendation stage.

3) EXPath is a community effort that has defined 
a number of useful functions to be invoked (using 
a different namespace than the standardized "fn:" 
namespace) from XPath; many XPath 2.0 
implementations recognize that namespace.

Hope this helps,
    Jim


At 5/7/2013 12:02 PM, Costello, Roger L. wrote:
>Hi Folks,
>
>Suppose my Schematron assertions need to do some 
>math calculations – cosine, sine, tangent, etc.
>
>I am using XPath 2.0 in my Schematron 
>assertions. But XPath 2.0 doesn’t support 
>functions for cosine, sine, tangent, etc.
>
>What is the recommended way to extend Schematron?
>
>/Roger

========================================================================
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)     Phone: +1.801.942.0144
   Chair, ISO/IEC JTC1/SC32 and W3C XML Query WG    Fax : +1.801.942.3345
Oracle Corporation        Oracle Email: jim dot melton at oracle dot com
1930 Viscounti Drive      Alternate email: jim dot melton at acm dot org
Sandy, UT 84093-1063 USA  Personal email: SheltieJim at xmission dot com
========================================================================
=  Facts are facts.   But any opinions expressed are the opinions      =
=  only of myself and may or may not reflect the opinions of anybody   =
=  else with whom I may or may not have discussed the issues at hand.  =
========================================================================  



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