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: [xml-dev] Recommended way to extend Schematron?

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 

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 Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

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]

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