Page 1 of 1
How to add EXSLT regular-expressions extensions to oXygen?
Posted: Sun Apr 20, 2008 10:52 pm
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
Re: How to add EXSLT regular-expressions extensions to oXygen?
Posted: Mon Apr 21, 2008 5:58 pm
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
Re: How to add EXSLT regular-expressions extensions to oXygen?
Posted: Mon Apr 21, 2008 9:47 pm
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
Re: How to add EXSLT regular-expressions extensions to oXygen?
Posted: Tue Apr 22, 2008 5:33 am
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
Re: How to add EXSLT regular-expressions extensions to oXygen?
Posted: Tue Apr 22, 2008 9:54 am
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