How to add EXSLT regular-expressions extensions to oXygen?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Sun Apr 20, 2008 10:45 pm
How to add EXSLT regular-expressions extensions to oXygen?
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
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
-
- 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
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
-
- Posts: 3
- Joined: Sun Apr 20, 2008 10:45 pm
Re: How to add EXSLT regular-expressions extensions to oXygen?
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
I re-read your post again

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
-
- 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
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service