P
Paul
Hi,
I am using System.ServiceModel.Syndication to create RSS feeds. I do not
know how to specify which XSL Stylesheet to associate with the feed. If you
build the XML doc "by hand" asp 2 style, you can add a line like this to the
top of the xml doc:
<?xml-stylesheet type="text/xsl" href="urlToXSLstyleSheet" version="1.0"?>
No I use code like the following to emit:
(the "feed" variable in the code is a
System.ServiceModel.Syndication.SyndicationFeed object)
Dim rssWriter As XmlWriter = New XmlTextWriter(Response.OutputStream,
Encoding.UTF8)
Dim rssFormatter As Rss20FeedFormatter = New Rss20FeedFormatter(feed)
rssFormatter.WriteTo(rssWriter)
rssWriter.Flush()
Response.ContentType = "text/xml"
Response.End()
My question: how do I specify a XSL Styelsheet for the
System.ServiceModel.Syndication.SyndicationFeed?
Thanks
Paul
I am using System.ServiceModel.Syndication to create RSS feeds. I do not
know how to specify which XSL Stylesheet to associate with the feed. If you
build the XML doc "by hand" asp 2 style, you can add a line like this to the
top of the xml doc:
<?xml-stylesheet type="text/xsl" href="urlToXSLstyleSheet" version="1.0"?>
No I use code like the following to emit:
(the "feed" variable in the code is a
System.ServiceModel.Syndication.SyndicationFeed object)
Dim rssWriter As XmlWriter = New XmlTextWriter(Response.OutputStream,
Encoding.UTF8)
Dim rssFormatter As Rss20FeedFormatter = New Rss20FeedFormatter(feed)
rssFormatter.WriteTo(rssWriter)
rssWriter.Flush()
Response.ContentType = "text/xml"
Response.End()
My question: how do I specify a XSL Styelsheet for the
System.ServiceModel.Syndication.SyndicationFeed?
Thanks
Paul