[oXygen-user] Extension functions in validation scenario
George Cristian Bina
george at oxygenxml.com
Thu Apr 25 13:50:26 CDT 2013
I am not sure how you want to use those extensions, I guess you want to
use them in an XML Schema 1.1 in the xs:assert/@test attribute?
In that case the suggestion below will not work but you can add your
extensions library to the [oXygen]/lib folder and oXygen will load that
automatically (for the Eclipse plugin you need to also edit the
plugin.xml file to add a pointer to that library in the <runtime> section).
On the other hand I have not checked if the XML Schema 1.1 spec allows
using extension functions inside the xs:assert/@test attribute...
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
On 4/25/13 9:26 PM, oXygen XML Editor Support wrote:
> I've already replied to your question on the support email.
> Please see the response forwarded below:
>> -------- Original Message --------
>> Subject: Re: Extension functions in validation scenario
>> Date: Thu, 25 Apr 2013 20:45:46 +0300
>> From: oXygen XML Editor Support <support at oxygenxml.com>
>> To: Rushforth, Peter <Peter.Rushforth at NRCan-RNCan.gc.ca>
>> Thank you for contacting us.
>> The fastest way to add the jars containing your extension functions
>> would be to add them as extensions in the transformation scenario.
>> For that, you should go to the "Configure Transformation Scenario(s)",
>> even by oXygen menu Document > Transformation, or using its
>> corresponding icon in the Transformation toolbar then choose to "Edit"
>> the scenario.
>> Once in the scenario editing dialog, in the "XSLT" (first) tab, you have
>> "Extensions". Here is where your jars should go.
>> You could also add the extension using a Saxon configuration file, but
>> this operation is more complex than the first.
>> You can add the Saxon configuration file in the same edit scenario
>> dialog, same tab (XSLT).
>> For that you should access the "Advanced options" for the Saxon engine
>> (yellow cogwheel icon neat the Transformer chooser).
>> Let us know if you need additional information or any further help.
> Costin Sandoi
> oXygen XML Editor and Author Support
> Tel: +1-650-352-1250 ext.302
> Fax: +40-251-461482
> support at oxygenxml.com
> This message (including any attachments) contains confidential
> information and is intended only for the individual(s) named. If you are
> not the named addressee you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately by e-mail if you have
> received this e-mail by mistake and delete this e-mail from your system.
> Any quotation contained herein has a validity of 30 days, unless
> otherwise specified.
> On 4/25/2013 6:03 PM, Rushforth, Peter wrote:
>> I have written some saxon extension functions which support XML Schema assertions.
>> Is there any way to add the jar containing those functions such that I can test them in Oxygen?
>> Peter Rushforth
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
More information about the oXygen-user