Hi Mika
xsl:include is for including other xslt stylesheets (i.e. as modules).
Instead, I believe you should use the xpath document() function:
xsl:apply-templates select=document('http://localhost/feed.rss')/
(... or whatever the URL is).
This will apply templates in your stylesheet to the included file; by
writing templates to match the RSS elements you can style them as HTML.
Slightly more elegant in my opinion would be to include the RSS into
your DRI (and transforming it to the DRI schema elements such as div
head, list, ref etc.) by writing a Manakin Aspect. This would make
it easier to style the RSS as HTML consistently with the rest of your
Manakin Theme.
A few weeks ago I posted an example Aspect that adds extra data to the
DRI document:
http://sourceforge.net/mailarchive/forum.php?thread_name=1202163796.7811.30.camel%40localhostforum_name=dspace-tech
Regards
Conal
On Mon, 2008-02-25 at 15:35 +0200, Mika Stenberg wrote:
Hi,
Im hoping to include a newsfeed file as a part of our repository
frontpage. I was thinking of using xsl:include but it seems that its not
really working. So how should I do a simple html-file include in Manakin
XSL files?
Thanks,
Mika
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Conal Tuohy
New Zealand Electronic Text Centre
www.nzetc.org
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech