Thread: [Hypercontent-users] RSS output
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2005-10-05 13:33:32
|
Hi Alex I'm sure my questions seem never ending !! I have created a dtd that allows the user to create an xml file for an RSS feed. it outputs an xml file http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an rss feed but it doesn't actually work with any rss readers. Am I missing something? My DTD is as follows : <!ELEMENT rss (channel)> <!ATTLIST rss version CDATA #REQUIRED> <!ELEMENT channel (title | link | description | language | item+ | rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*> <!ELEMENT title (#PCDATA)> <!ELEMENT link (#PCDATA)> <!ELEMENT description (#PCDATA)> <!ELEMENT image (title | url | link | width? | height? | description?)*> <!ELEMENT url (#PCDATA)> <!ELEMENT item (title | description | link)*> <!ELEMENT textinput (title | description | name | link)*> <!ELEMENT name (#PCDATA)> <!ELEMENT rating (#PCDATA)> <!ELEMENT language (#PCDATA)> <!ELEMENT width (#PCDATA)> <!ELEMENT height (#PCDATA)> <!ELEMENT copyright (#PCDATA)> <!ELEMENT pubDate (#PCDATA)> <!ELEMENT lastBuildDate (#PCDATA)> <!ELEMENT docs (#PCDATA)> <!ELEMENT managingEditor (#PCDATA)> <!ELEMENT webMaster (#PCDATA)> <!ELEMENT hour (#PCDATA)> <!ELEMENT day (#PCDATA)> <!ELEMENT skipHours (hour+)> <!ELEMENT skipDays (day+)> and then in my site definition: <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" path="/rss/*" root="rss"> <output basedir="/" content-type="text/xml"/> </xml-doctype> -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-10-05 14:03:01
|
Hi Carl, That RSS feed works for me (with NetNewsWire Lite). Perhaps some readers don't support the 0.91 version? Or perhaps the DOCTYPE declaration is confusing them? For the latter, you would have to run it through an XSL to prevent the doctype from showing. -Alex On Oct 5, 2005, at 9:33 AM, Carl Barrow wrote: > Hi Alex > > I'm sure my questions seem never ending !! > > I have created a dtd that allows the user to create an xml file for an > RSS feed. it outputs an xml file > http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an rss > feed but it doesn't actually work with any rss readers. Am I missing > something? > > My DTD is as follows : > <!ELEMENT rss (channel)> > <!ATTLIST rss > version CDATA #REQUIRED> > <!ELEMENT channel (title | link | description | language | item+ | > rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? > | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*> > <!ELEMENT title (#PCDATA)> > <!ELEMENT link (#PCDATA)> > <!ELEMENT description (#PCDATA)> > <!ELEMENT image (title | url | link | width? | height? | > description?)*> > <!ELEMENT url (#PCDATA)> > <!ELEMENT item (title | description | link)*> > <!ELEMENT textinput (title | description | name | link)*> > <!ELEMENT name (#PCDATA)> > <!ELEMENT rating (#PCDATA)> > <!ELEMENT language (#PCDATA)> > <!ELEMENT width (#PCDATA)> > <!ELEMENT height (#PCDATA)> > <!ELEMENT copyright (#PCDATA)> > <!ELEMENT pubDate (#PCDATA)> > <!ELEMENT lastBuildDate (#PCDATA)> > <!ELEMENT docs (#PCDATA)> > <!ELEMENT managingEditor (#PCDATA)> > <!ELEMENT webMaster (#PCDATA)> > <!ELEMENT hour (#PCDATA)> > <!ELEMENT day (#PCDATA)> > <!ELEMENT skipHours (hour+)> > <!ELEMENT skipDays (day+)> > > > and then in my site definition: > > <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" > path="/rss/*" > root="rss"> > <output basedir="/" content-type="text/xml"/> > </xml-doctype> > > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
From: Carl B. <C.P...@hu...> - 2005-10-05 14:26:52
|
Hi Alex Very interesting, I've tried it in NetNewsWire just now and it doesn't work, it might well be something to do with our proxy/cache setting here. At least I know it's working somewhere! Thanks for taking a look :) Cheers Carl Alex Vigdor wrote: > Hi Carl, > That RSS feed works for me (with NetNewsWire Lite). Perhaps some > readers don't support the 0.91 version? Or perhaps the DOCTYPE > declaration is confusing them? For the latter, you would have to run > it through an XSL to prevent the doctype from showing. > > -Alex > > On Oct 5, 2005, at 9:33 AM, Carl Barrow wrote: > >> Hi Alex >> >> I'm sure my questions seem never ending !! >> >> I have created a dtd that allows the user to create an xml file for >> an RSS feed. it outputs an xml file >> http://www.hull.ac.uk/esig/cree/rss/test.xml which validates as an >> rss feed but it doesn't actually work with any rss readers. Am I >> missing something? >> >> My DTD is as follows : >> <!ELEMENT rss (channel)> >> <!ATTLIST rss >> version CDATA #REQUIRED> >> <!ELEMENT channel (title | link | description | language | item+ | >> rating? | image? | textinput? | copyright? | pubDate? | >> lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | >> skipDays?)*> >> <!ELEMENT title (#PCDATA)> >> <!ELEMENT link (#PCDATA)> >> <!ELEMENT description (#PCDATA)> >> <!ELEMENT image (title | url | link | width? | height? | description?)*> >> <!ELEMENT url (#PCDATA)> >> <!ELEMENT item (title | description | link)*> >> <!ELEMENT textinput (title | description | name | link)*> >> <!ELEMENT name (#PCDATA)> >> <!ELEMENT rating (#PCDATA)> >> <!ELEMENT language (#PCDATA)> >> <!ELEMENT width (#PCDATA)> >> <!ELEMENT height (#PCDATA)> >> <!ELEMENT copyright (#PCDATA)> >> <!ELEMENT pubDate (#PCDATA)> >> <!ELEMENT lastBuildDate (#PCDATA)> >> <!ELEMENT docs (#PCDATA)> >> <!ELEMENT managingEditor (#PCDATA)> >> <!ELEMENT webMaster (#PCDATA)> >> <!ELEMENT hour (#PCDATA)> >> <!ELEMENT day (#PCDATA)> >> <!ELEMENT skipHours (hour+)> >> <!ELEMENT skipDays (day+)> >> >> >> and then in my site definition: >> >> <xml-doctype definition="/dtd/rss.dtd" label="Create an RSS feed" >> path="/rss/*" >> root="rss"> >> <output basedir="/" content-type="text/xml"/> >> </xml-doctype> >> >> >> -- >> ************************************ >> >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> ************************************ >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |