[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Recommended way to extend Schematron?
- From: George Cristian Bina <george@oxygenxml.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Tue, 07 May 2013 22:55:52 +0300
Hi Roger,
Here there are a couple of additional possibilities:
Skeleton and also our oXygen's Skeleton-based Schematron implementation
have a parameter that allows foreign elements - that can be used to pass
over XSLT code from your Schematron file to the generated stylesheet,
for example if you define an xsl:function then that will go in the
generated XSLT code and you should be able to call that from your XPath
expressions.
Another option will be to handle a new queryBinding in the Schematron
implementation that you use, for example the value for that can be xslt3
to indicate that you want to use that and then you can access functions
that are defined in XSLT 3.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 5/7/13 9: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
>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]