RSS

2003-03-27 Thread Richard Cunliffe








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.








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.








Re: Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-14 Thread hgadm
Thanks Jens and Jeff !

Itried the XPathDirectoryGenerator. Sitemap fragment:

...

map:match pattern=kno-index
   map:generate type=xpathdirectory 
src=C:\Documents and Settings\Owner\My
Documents\Projects\XML\KNO\#/azkno:knowledgeobject/dc:title/
   map:serialize type=xml/
/map:match

...

Which yields an XML file with the current fragment:

...

dir:file name=microdialysis1.xml
lastModified=1046298926956 date=26/02/03 22:35
size=9449
  dir:xpath docid=microdialysis1.xml
query=/azkno:knowledgeobject/dc:title / 
/dir:file

...

Obviously this has produced XML output identifying
files that comply having this tag but the query wasn't
executed, i.e. I haven't got the content of this tag
(which I need).

Any Ideas ??

Holger

 
senderDateInfo

 
 On Tue, Mar 11, 2003 at 05:11:30AM -0800,
 [EMAIL PROTECTED] wrote:
  Dear all,
  
  I would like to dynamically generate an RSS feed
from
  currently available XML files in a folder on my
  webserver to be displayed in the Cocoon portal.
  
  I have a set of equally structured XML files in a
  folder and new files are added to this folder
 regularly.
  
  Now I want to generate the RSS feed dynamically when
  the respective coplet displays the RSS in the
portal.
  
  The RSS file should reflect the title of these XML
  files (which is in the dc:title tag of each file)
and
  the URI (the path + filename).
  
  Any ideas are greatly appreciated, hope someone has
  done similar things before - otherwise I would need
to
  start from scratch.
 
 If you're using Cocoon 2.1, the
XPathDirectoryGenerator
 might be useful.
 It lets you extract XPath-specified nodes from every
 file in a directory.
 
 For example, to generate
 a
href=http://mail.cswebmail.com/jump/http://aft.sourceforge.net/examples/index.html;http://aft.sourceforge.net/examples/index.html/a
 I used:
 
map:match pattern=examples/index.xml
  map:generate type=xpathdirectory
  

src=content/xdocs/examples#/project/description/text()/
  map:transform

src=resources/stylesheets/antdirectory2document.xsl/
  map:serialize type=xml/
/map:match
 
 
 --Jeff
 
  Kind regards,
  
  Holger
  
 

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

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread hgadm
Dear all,

I would like to dynamically generate an RSS feed from
currently available XML files in a folder on my
webserver to be displayed in the Cocoon portal.

I have a set of equally structured XML files in a
folder and new files are added to this folder regularly.

Now I want to generate the RSS feed dynamically when
the respective coplet displays the RSS in the portal.

The RSS file should reflect the title of these XML
files (which is in the dc:title tag of each file) and
the URI (the path + filename).

Any ideas are greatly appreciated, hope someone has
done similar things before - otherwise I would need to
start from scratch.

Kind regards,

Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread jmaukisch

Hi,

 I would like to dynamically generate an RSS feed from
 currently available XML files in a folder on my
 webserver to be displayed in the Cocoon portal.
I did that some days ago ...

This was my approach:
1. Use the directory generator to generate the list of files in your folder
2. Transform the file list to cinclude statements
3. Transform the the list with the cinclude transformer
4. Apply a nice xsl wich selects the stuff you want to have in your rss
feed ;-)


You pipeline will look like this:
map:match pattern=foobar
 map:generate type=dir src=your/dir//
  map:transform src=dir2cinclude.xsl/
  map:transform type=cinclude/
  map:transform src=cinclude2rss.xsl/
  map:serialize type=xml/
/map:match

don't know if it's the best way, but it simply works
maybe there are some performance problems if you have
many and/or large files


kind regards
Jens Maukisch
-
sn AG
netBank solutions
Klingenderstr. 5mailto:[EMAIL PROTECTED]
D-33100 Paderborn   http://www.s-und-n.de
-
CeBIT 2003 * Hannover * 12.-19.3.2003
Besuchen Sie uns auf dem Stand der Software AG
Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15
-


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



Re: Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread Jeff Turner
On Tue, Mar 11, 2003 at 05:11:30AM -0800, [EMAIL PROTECTED] wrote:
 Dear all,
 
 I would like to dynamically generate an RSS feed from
 currently available XML files in a folder on my
 webserver to be displayed in the Cocoon portal.
 
 I have a set of equally structured XML files in a
 folder and new files are added to this folder regularly.
 
 Now I want to generate the RSS feed dynamically when
 the respective coplet displays the RSS in the portal.
 
 The RSS file should reflect the title of these XML
 files (which is in the dc:title tag of each file) and
 the URI (the path + filename).
 
 Any ideas are greatly appreciated, hope someone has
 done similar things before - otherwise I would need to
 start from scratch.

If you're using Cocoon 2.1, the XPathDirectoryGenerator might be useful.
It lets you extract XPath-specified nodes from every file in a directory.

For example, to generate http://aft.sourceforge.net/examples/index.html
I used:

   map:match pattern=examples/index.xml
 map:generate type=xpathdirectory
  src=content/xdocs/examples#/project/description/text()/
 map:transform src=resources/stylesheets/antdirectory2document.xsl/
 map:serialize type=xml/
   /map:match


--Jeff

 Kind regards,
 
 Holger
 

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