Re: RSS

2003-03-27 Thread Steven Noels
On 26/03/2003 18:33 Richard Cunliffe wrote:

I want to call a RSS feed. Is it possible for the style sheet to use the 
XML document it is styling and the XML RSS feed.

How would I set up my sitemap to do this? And how would I call the two 
different XML files in my style sheet?
I understand (please try to formulate your exact question better in the 
future) that you want to use an RSS feed as a source. Your sitemap 
should consider something like this:

map:match pattern=myfeed.html
  map:generate src=http://host/myfeed.rss/
  map:transform src=mystylesheet.xsl/
  map:serialize/
/map:match
when accessing this pipeline using http://host/cocoon/myfeed.html, 
Cocoon will read the RSS feed and apply the mystylesheet.xsl onto it, 
producing HTML (if that's what the stylesheet has been designed for).

I've recently written a (hopefully) layman's intro into Cocoon as a 
paper for a conference, maybe some of it makes sense to you: 
http://www.idealliance.org/europe/03/call/xmlpapers/02-01-05.14/.02-01-05.html

In case you want to really use the content of the RSS feed _inside_ your 
XSLT stylesheet (as a variable perhaps), you should use the XSLT 
document() function, for which you also can specify an URL as a source. 
But all in all, since you have choosen for Cocoon, you might as well use 
Cocoon aggregation or the various IncludeTransformers instead.

Hope this helps,

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RSS

2003-03-27 Thread Charles Yates
see http://www.w3.org/TR/xslt#document

xsl:apply-templates 
select=document('http://news.newsfeedsource.com/newsfeed.rss')/*/
or something like that.

also consider using XIncludeTransformer or CIncludeTransformer:

document
 stuff/
xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=http:// 
http://www.reutershealth.com/eline.rdfnews.newsfeedsource.com/newsfeed.rss/
 morestuff/
/document

map:generate src=document.xml/
map:transform type=xinclude/
map:transform type=xsl src=mystylesheet.xsl/
map:serialize/
Charles

Richard Cunliffe wrote:

Hi,

 

I want to call a RSS feed. Is it possible for the style sheet to use 
the XML document it is styling and the XML RSS feed.

How would I set up my sitemap to do this? And how would I call the two 
different XML files in my style sheet?

 

 

 

Thanks,

 

Richard.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: RSS

2003-03-27 Thread Olson, Dave -Systems
Richard,
I just read about a feature that might be helpful to you.  The discussion of
Content Aggregation in Cocoon: Building XML Applications (Matthew
Langham, Carsten Ziegeler; New Riders Pub; ISBN : 0-7357-1235-2) discusses a
way to aggregate multiple generators into a single XML document, on the fly,
that can then be transformed using a style sheet.  It uses, among other
tags, the map:aggregate tag.  I'm just a beginner at Cocoon, so it may not
be the best way to do it, and it's probably not the only way to do it.
Maybe others can provide alternate methods.

I want to call a RSS feed. Is it possible for the style sheet to use the
XML document it is styling and the XML RSS feed. 
How would I set up my sitemap to do this? And how would I call the two
different XML files in my style sheet?

Thanks,

Richard.

 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RSS

2003-03-27 Thread Charles Yates
Cut and Paste ugliness correction:

xi:include xmlns:xi=http://www.w3.org/2001/XInclude; 
href=http://news.newsfeedsource.com/newsfeed.rss/

Charles Yates wrote:

see http://www.w3.org/TR/xslt#document

xsl:apply-templates 
select=document('http://news.newsfeedsource.com/newsfeed.rss')/*/
or something like that.

also consider using XIncludeTransformer or CIncludeTransformer:

document
 stuff/
xi:include xmlns:xi=http://www.w3.org/2001/XInclude; href=http:// 
http://www.reutershealth.com/eline.rdfnews.newsfeedsource.com/newsfeed.rss/
 morestuff/
/document

map:generate src=document.xml/
map:transform type=xinclude/
map:transform type=xsl src=mystylesheet.xsl/
map:serialize/
Charles

Richard Cunliffe wrote:

Hi,

 

I want to call a RSS feed. Is it possible for the style sheet to use 
the XML document it is styling and the XML RSS feed.

How would I set up my sitemap to do this? And how would I call the 
two different XML files in my style sheet?

 

 

 

Thanks,

 

Richard.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


IGNORE THIS RE: RSS

2003-03-27 Thread Richard Cunliffe








IGNORE THIS





Richard



-Original
Message-
From: Richard Cunliffe
[mailto:[EMAIL PROTECTED] 
Sent: 26
 March 2003 17:34
To: [EMAIL PROTECTED]
Subject: RSS



Hi,



I want to call a RSS feed. Is it
possible for the style sheet to use the XML document it is styling and the XML
RSS feed. 

How would I set up my sitemap to do
this? And how would I call the two different XML files in my style sheet?







Thanks,



Richard.