Xaquín: yes you can do this.

You could look at using xinclude and Cocoon's XIncludeTransformer.

Perhaps you could add an Aspect which:

1) used an XSLT to insert the appropriate xinclude element in the DRI document; 
2) then used the XInclude transformer to dereference the xinclude (essentially 
this will make a recursive call to Cocoon).

e.g. you need to insert something like this:

<xinclude xmlns="http://www.w3.org/2001/XInclude"; 
href="cocoon://DRI/cualquier/uri/aqui"/>

In the cocoon sitemap you would have:

<map:transform src="insert-xinclude.xsl"/>
<map:transform type="xinclude"/>

Of course you will also need to transform the included XML into HTML ...

Con

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Xaquin Lores
Sent: Thu 6/5/2008 23:29
To: [email protected]
Subject: [Dspace-tech] process 2 DRI with a XSL
 
Hello,

Would be posible to call another DRI inside a XSL while procesing a DRI? I
want to have list of items in a collection homepage (not recent submisions),
so I need to include it in the DRI of collection.

Thanks

Xaquín Lores


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to