[oXygen-user] oXygen and EXSLT
Tue Apr 22 04:34:47 CDT 2008
If you can't use XSLT 2.0 which has built-in support for
regular expressions you have to import the EXSLT regexp
extension in an XSLT 1.0 stylesheet but you have to use
MSXML or Xalan in oXygen.
For MSXML the EXSLT stylesheets need a modification: import
the MSXML stylesheet directly instead of the wrapper
stylesheet that includes the MSXML stylesheet with a
func:script element. For example for the EXSLT regexp
replace stylesheet you have to import in your stylesheet
<xsl:import href="regexp.replace.msxsl.xsl" />
<xsl:import href="regexp.replace.xsl" />
which contains an element
as in the EXSLT example on the exslt.org website.
For Xalan you have to modify the EXSLT stylesheet to conform
with the Xalan extension rules specified on the Xalan
regexp.replace.js) must be adapted to Xalan as in the
example which you can find on the same Xalan page:
You have to add bsf.jar (the Bean Scripting Framework) and
js.jar (the Apache Rhino project) as XSLT extensions to the
oXygen transformation scenario that processes your EXSLT
enabled stylesheet with Xalan. These jar files are needed
The oXygen User Manual describes how to set an XSLT
extension in an oXygen transformation scenario:
> I was wondering if it's possible to get oXygen 9.1 working with EXSLT?
> I'm particularly interested in regExp, but when I try that, I get a debugger error "Unknown Saxon extension element: script".
> If someone has been able to get this working, can you please share how you accomplished this?
> P.S. I can't use XSLT 2.0 because it won't be available in another environment which is the target.
More information about the oXygen-user