cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <>
Subject RE: XSLT import/include errors
Date Fri, 21 Jun 2013 14:42:56 GMT
That is possible but the how-to part depends on the Saxon version you are using.  You will
need to dive into how to write extension functions for that particular implementation.

I used it a number of times with Saxon 8.7

But i never tried with the latest version of Saxon which works differently.

Van: gelo1234 []
Verzonden: vrijdag 21 juni 2013 15:23
To: Cocoon Users
Onderwerp: Re: XSLT import/include errors

OK, one more question. Is it possible with Saxon/Xalan in C3 to invoke external Java function
I can't get it working:

<xsl:stylesheet xmlns:xsl="" version="1.0"

        <xsl:template match="Page">

                     <xsl:variable name="fileName" select="file"/>

                           <xsl:value-of select="utils:exists($fileName)"/>


Tried Xalan, tried Saxon. Both generates some strange errors with XML Document.


2013/6/20 gelo1234 <<>>
The latest Saxon got the same _global_ variable context scope and doesn't allow overriding
OK, I will fix that :)


2013/6/20 gelo1234 <<>>

Thank you! I will try to bring back Saxon :)


This was discused before in the mailing list [1], it's a two step process

* Add saxon dependency to pom file. [2]

I think it's better to try Saxon directly if you used to work with it. Xalan is usually faster
but as you have to migrate already made templates from Saxon IMO it's better to switch the


The Future Group, dé maat in ondernemen

[The Future Group]<>    [The Future Group kantoor]         
    Röntgenlaan 27 | 2719 DX Zoetermeer     [Mobiel nummer]                 06 15879926
[Web-site]     [E-mail adres]
[Telefoonnummer]                +31 (0)79 - 363 2905    [LinkedIn account]

View raw message