Hi Nilani, Gert,
We also wanted to use XSLT 2.0 within GSearch, and also successfully followed
the same approach you described - replacing xalan.jar with saxon.jar, and
changing all xslt versions to 2.0. However, we ran into problems when
attempting to read in content that is not inline XML. I believe that GSearch
uses the Xalan approach for calling Java extensions from within a stylesheet,
such as the call out to exts:getDatastreamText that is used to read in content
that is not inline. This approach is described at:
http://xml.apache.org/xalan-j/extensions.html#java-namespace, and does not work
under Saxon, which returns the following error when compiling a stylesheet with
this code:
Error at xsl:value-of on line 127
XPST0017: XPath syntax error at char 125 on line 127 in {...USTSTOREPATH,
$TRUSTSTOREPA...}:
Cannot find a matching 8-argument function named
{xalan://dk.defxws.fedoragsearch.server.GenericOperationsImpl}getDatastreamText()
For this reason, we continued using GSearch with Xalan to take advantage of
exts:getDatastreamText, and have encapsulated our XSLT 2.0 / Saxon code in
another process.
A version of GSearch with support for XSLT 2.0 and external datastream content
would be very useful. If you have managed to make this work in one package,
please let us know!
Good luck,
Doron
------------------------------
Date: Fri, 1 Oct 2010 10:47:51 +0100
From: "Nilani Ganeshwaran" <[email protected]>
Subject: Re: [fcrepo-dev] gsearch with saxon
To: "Gert Schmeltz Pedersen" <[email protected]>
Cc: "[email protected]"
<[email protected]>
Message-ID: <20101001104751648.00000004...@j-s-re12662>
Content-Type: text/plain; charset="us-ascii"
Hi Gert
Gsearch 2.2 is working with saxon without any problem. I replaced xalan.jar
with saxon.jar and changed all xslts version to 2.0.
Regards
Nilani
Nilani Ganeshwaran
eScholar Software Developer
The University of Manchester
Tel: 0161 2758728
From: Gert Schmeltz Pedersen [mailto:[email protected]]
Sent: 30 September 2010 11:40
To: [email protected]
Cc: [email protected]
Subject: Re: gsearch with saxon
Hi Nilani
I have not tried it. Let me know, if you succeed.
Regards,
Gert
On 30/09/2010, at 12.05, Nilani Ganeshwaran wrote:
Hi Gert
I prefer to use saxon in gsearch 2.2 instead of xalan, any advice would be
appreciated.
Regards
Nilani
Nilani Ganeshwaran
eScholar Software Developer
Red 1.1, The John Rylands University Library
The University of Manchester
Oxford Road, Manchester, M13 9PP
Tel: 0161 2758728
Web: http://www.escholar.manchester.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
------------------------------
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
End of Fedora-commons-developers Digest, Vol 44, Issue 1
********************************************************
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers