How to add EXSLT regular-expressions extensions to oXygen?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jimcpl
Posts: 3
Joined: Sun Apr 20, 2008 10:45 pm

How to add EXSLT regular-expressions extensions to oXygen?

Post by jimcpl »

Hi,

I'm just starting to use oXygen, and I need to use the regular-expressions extension from http://exslt.org/.

I downloaded the files from the above site, and configured a scenario in oXygen, I get two errors:

SystemID: C:\XSLT-Tests\functions\test\regexp.test.xsl
Location: 3:0
Description: Unknown Saxon extension element: script

Can anyone tell me what else I need to do to use these extensions in oXygen?

Thanks,
Jim
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to add EXSLT regular-expressions extensions to oXygen?

Post by sorin_ristache »

Hello,

I tried to use the stylesheets for EXSLT regular expression extensions available at exslt.org but they do not follow the rules for declaring a JavaScript extension for the Xalan processor or a MSXML extension. If you want to use these stylesheets in oXygen they have to be modified in order to follow the rules for extensions for one of the Xalan and MSXML processors.

You can use XSLT 2.0 instead of XSLT 1.0. XSLT 2.0 has built-in support for regular expressions so you do not need extensions. Just set Saxon 9 in the scenario edit dialog as the XSLT processor that runs the XSLT 2.0 stylesheet.


Regards,
Sorin
jimcpl
Posts: 3
Joined: Sun Apr 20, 2008 10:45 pm

Re: How to add EXSLT regular-expressions extensions to oXygen?

Post by jimcpl »

sorin,

Unfortunately, the environment that I'm working on doesn't support XSLT 2.0 (but it does support EXSLT), so XSLT 2.0 isn't an option for me.

Thanks,
Jim
jimcpl
Posts: 3
Joined: Sun Apr 20, 2008 10:45 pm

Re: How to add EXSLT regular-expressions extensions to oXygen?

Post by jimcpl »

sorin,

I re-read your post again :). So, are you saying that if I somehow modify the XSL that comes with (for example) the EXSLT regExp, I could get it work with (for example) Xalan?

If so, do you have any idea what needs to be modified, or maybe point me to where I might find info about what needs to be done (fairly/very new here)?

Thanks,
Jim
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to add EXSLT regular-expressions extensions to oXygen?

Post by sorin_ristache »

You can find details about adding a JavaScript extension on the Xalan website. The regExp extension from EXSLT does not use a xalan:component element with a functions attribute.


Regards,
Sorin
Post Reply