[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 doesnt 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|