using math extension in oxygen

I have a stylesheet which currently uses an exslt math function. Within oXygen this works fine in a transformation scenario, provided I choose the saxon9pe processor. Using saxon9ee however, it fails. Why is that? And how would I go about running this transformation outside oXygen? I need to run it many times, preferably from the command line.

Hi Lou, While I don’t know why EXSLT math won’t work with EE in oXygen (it should) when it still works with PE, I know that you can use XSLT 3 including the XPath 3.1 math functions with recent standalone Saxon HE versions, available from https://sourceforge.net/projects/saxon/files/Saxon-HE/9.8/. They will run on the command line with no license required. Porting EXSLT math to XPath 3.1 should be straightforward, it might be as easy as changing xmlns:math="http://exslt.org/math" to xmlns:math="http://www.w3.org/2005/xpath-functions/math" and version="2.0" to version="3.0". Gerrit On 15.11.2018 21:09, Lou Burnard wrote:
I have a stylesheet which currently uses an exslt math function. Within oXygen this works fine in a transformation scenario, provided I choose the saxon9pe processor. Using saxon9ee however, it fails. Why is that? And how would I go about running this transformation outside oXygen? I need to run it many times, preferably from the command line.

On 15.11.2018 21:09, Lou Burnard wrote:
I have a stylesheet which currently uses an exslt math function. Within oXygen this works fine in a transformation scenario, provided I choose the saxon9pe processor. Using saxon9ee however, it fails. Why is that? And how would I go about running this transformation outside oXygen? I need to run it many times, preferably from the command line.
I bet it fails with free Saxon-HE as this version doesn't support all extensions. What version of XSLT language you are using? If you are using 1.0 then you can use good old Saxon 6.5.5. If you are using 2.0 you can upgrade to 3.0 which provides math functions natively, without need to use EXSLT extensions: https://www.w3.org/TR/xpath-functions-31/#trigonometry -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------

On 15/11/2018 21:02, Jirka Kosek wrote:
On 15.11.2018 21:09, Lou Burnard wrote:
I have a stylesheet which currently uses an exslt math function. Within oXygen this works fine in a transformation scenario, provided I choose the saxon9pe processor. Using saxon9ee however, it fails. Why is that? And how would I go about running this transformation outside oXygen? I need to run it many times, preferably from the command line. I bet it fails with free Saxon-HE as this version doesn't support all extensions.
What version of XSLT language you are using? If you are using 1.0 then you can use good old Saxon 6.5.5. If you are using 2.0 you can upgrade to 3.0 which provides math functions natively, without need to use EXSLT extensions:
Thanks (also to Gerrit!) for quick and helpful responses -- actually I only needed to get rid of a few xslt 2.0 specifics in my stylesheet, and then it runs fine with xsltproc. Good to know that there is also the option of doing without exslt extensions though.
participants (3)
-
Imsieke, Gerrit, le-tex
-
Jirka Kosek
-
Lou Burnard