XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: Recommended way to extend Schematron?

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 doesn’t 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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS