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?

Hi Roger,

I recently had to do something similar.  I used the ExtensionFunction interface in saxon to define extensions based on java libraries, and was able to call them from XML schema 1.1 assert elements.  I was wondering about using "pure xpath" but I could not figure out a way to do the processing I needed to do on input coordinate lists.  So saxon extension functions helped me there.

Peter Rushforth
From: Costello, Roger L. [costello@mitre.org]
Sent: May 7, 2013 2:02 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] Recommended way to extend Schematron?

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?


[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