[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Recommended way to extend Schematron?
- From: Rick Jelliffe <rjelliffe@allette.com.au>
- To: "Roger L. Costello" <costello@mitre.org>
- Date: Thu, 16 May 2013 14:34:17 +1000
People have indeed used the extension functions that vendors provide (such as functions in java: namespace)
I have seen people write xslt functions and embed them.
The cleanest way is to use a simple web service. E.g
document(" http://localhost/maths?get-sin=0.6")
returning a single element with the result. More appealing if the calculations are complex or cacheable of course. That is cross platform.
For assertion purposes, it may be that rather than testing
sin(X) > 0.5
it might better to test with arcsin 0.5
X > -30 and X < 30
or whatever. Do the lookup at coding time.
cheers
Rick
On May 8, 2013 4:02 AM, "Costello, Roger L." < costello@mitre.org> 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
[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
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.
|
|