I have found out how to implement a function to return a datastream as an XML 
tree, as you asked for.

I have created an issue for it: https://jira.duraspace.org/browse/FCREPO-1078

I have committed an implementation at
https://github.com/fcrepo/gsearch/commit/7ac7427efd98c7370ea28606940b5a8903ce0b8f

I will include it in the next release in a couple of months. If you want to try 
it out before that, you may build from source, see the documentation page. If 
you do, please, let me know, if you have ideas for improvement or questions or 
problems with it.

Gert


On 14/03/2012, at 10.29, Remi Malessa wrote:

> Is there a function to return a datastream as an XML tree ?
> 
> Remi
> 
> On 03/12/2012 06:11 PM, [email protected] wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> You can see how it's done with an example from Gert found here:
>> 
>> https://github.com/fcrepo/gsearch/blob/master/FgsConfig/FgsConfigIndexTemplate/Lucene/foxmlToLucene.xslt
>> 
>> Notice how he declares the namespace:
>> 
>> xmlns:exts="xalan://dk.defxws.fedoragsearch.server.GenericOperationsImpl"
>> 
>> in his XSLT XML and then uses function calls like:
>> 
>>                              <xsl:value-of disable-output-escaping="yes" 
>> select="exts:getDatastreamFromTika($PID, $REPOSITORYNAME, @ID, 'IndexField', 
>> concat('ds.', @ID), concat('dsmd_', @ID, '.'), '', $FEDORASOAP, $FEDORAUSER, 
>> $FEDORAPASS, $TRUSTSTOREPATH, $TRUSTSTOREPASS)"/>
>> 
>> later in his code. This is a pretty usual way to incorporate extension 
>> functions in XSLT, although of course, the use here is specific to Xalan.
>> 
>> - ---
>> A. Soroka
>> Software&  Systems Engineering :: Online Library Environment
>> the University of Virginia Library
>> 
>> On Mar 12, 2012, at 2:03 PM, Remi Malessa wrote:
>> 
>> 
> -- 
> Remi Malessa
> DAMS Rhaglennydd Datblygu | Development Programmer DAMS
> 
> Llyfrgell Genedlaethol Cymru | National Library of Wales
> Isadran Cyfrifiaduron | Computer Section
> 
> 
> 
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to