Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Dynamic RSS

From: Kass@-----------.---------.---
To: NULL
Date: 4/6/2009 6:58:00 AM
Joe,

Thanks for your assistance.  I'd like to keep this thread open while I do a 
little research on XSLT stylesheets.  Then  I'll be back with better 
questions and code for examination. 

I take it that you are suggesting that the stylesheet can provide my .xml 
RSS feed document with the capability to link to another sheet like I need 
and provide functioning capabilty within that RSS document as well. 

I've been all over the net for several days now finding how I can 
dynamically create whole feeds via PHP, scripts, databases, etc.  I don't 
want to create whole feeds each week just amend parts of existing feeds, 
while leaving parts of the individual feeds' compositions alone.  I feel I'm 
swimming up stream, which leads me to believe I probably have a conceptual 
misunderstanding in my train of thought. 

I'll go get a bit more educated so I can ask more pointed questions and not 
waste your time.

Thanks and I'll be back soon.

"Joe Fawcett" wrote:

> You can possibly use the document function to bring in external document to 
> an XSLT stylesheet and then extract data from each of them.
> Without a small concrete example of what exactly you need it's hard to give 
> more specific advice.
> 
> -- 
> 
> Joe Fawcett (MVP - XML)
> http://joe.fawcett.name
> "Kass" <Kass@d...> wrote in message 
> news:8908EA26-D244-40B3-AFED-03EF5145DDC7@m......
> > Martin,
> >
> > Thank you for your reply.
> > Here is what I'm trying to do... hoping I can stay within the .xml format.
> > That is why I'm in your forum, rather than PHP.  I'm trying to figure out 
> > if
> > it is possible to dynamically link parts of .xml nodes to a separate file 
> > in
> > the same directory, without disturbing the rest of the nodes in the .xml
> > format.
> >
> > We have feeds offered directly off the site, but also via subscription 
> > feed
> > and subscription email feed via Feedburner (now with Google).  We have
> > hundreds of subscribers  for the different venues, so I don't want to 
> > disturb
> > the .xml extension that Feedburner is set to if possible.
> >
> > Every week I use a Find / Replace to replace the <pubDate>, 
> > <lastBuildDate>,
> > the starting date (would be "April 3, 2009" below) and the week of date
> > (would be "Week of April 3rd - April 9th" below).
> >
> > Then I also have some common feed <description> information that I have to
> > open each feed and do a cut and paste and save.
> >
> > Not only is this redundant and time consuming, but more importantly, 
> > leaves
> > me open for mistakes.  So I'd like to do the common information mentioned
> > above more dynamically.
> > I've tried to figure out how to use dynamic linking in the parts of the 
> > .xml
> > feed files that would change weekly.... linking to a master file where I'd
> > make the weekly changes necessary, but I've not had much success.
> >
> > Here are some samples, and again I thank you for your time and knowledge.
> >
> > The unique information for each feed I've replaced with UNIQUE FEED INFO.
> >
> > The common information I've replaced with COMMON FEED and put 
> > between -------
> >
> > The actual feed that would be displayed would follow this format... I've
> > reblocked and shortened the number of items for clarity.
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <rss version="2.0">
> >
> > <channel>
> > <title>Title Here</title>
> > <pubDate>Thu, 02 Apr 2009 13:00:00 CST</pubDate>
> > <lastBuildDate>Thu, 02 Apr 2009 13:00:00 CST</lastBuildDate>
> > <description>Starting April 3, 2009 …UNIQUE FEED INFO...</description>
> > <language>en-us</language>
> > <link>https://domain.com/UNIQUE FEED INFO</link>
> > <copyright>Copyright 2008, Company Name</copyright>
> >
> >
> > <item>
> > <title>Showing the Week of April 3rd - April 9th at....UNIQUE FEED
> > INFO</title>
> > <link>https://domain.com</link>
> > <pubDate>Thu, 02 Apr 2009 13:00:00 CST</pubDate>
> > <description>Features Starting April 3, 2009 for ..UNIQUE FEED
> > INFO</description>
> > </item>
> >
> > ---------------There would be several common items--------------
> > <item>
> > <title>COMMON FEED TITLE</title>
> > <link>http://www.movietavern.com</link>
> > <pubDate>Thu, 02 Apr 2009 13:00:00 CST</pubDate>
> > <description>COMMON FEED DESCRIPTION</description>
> > </item>
> >
> > ---------------There would be several common items--------------
> > <item>
> > <title>Showing the Week of April 3rd - April 9th</title>
> > <link>http://www.domain.com/UNIQUE FEED INFO</link>
> > <pubDate>Thu, 02 Apr 2009 13:00:00 CST</pubDate>
> > <description>UNIQUE FEED INFO for the Week of April 3, 2009</description>
> > </item>
> >
> > </channel>
> > </rss>
> >
> > "Martin Honnen" wrote:
> >
> >> Kass wrote:
> >>
> >> > I have 25+ RSS feeds that have some unique information and some shared
> >> > information.  I'd like to have a "master.xml" (.rss or some sort of 
> >> > master)
> >> > that is linked to a "feed.xml" whereby I can adjust the shared 
> >> > information in
> >> > the "master.xml" file and it will dynamically change the appropriate 
> >> > nodes in
> >> > the "feed.xml" file.
> >> >
> >> > I tried using php inside the feed.xml file to pull data from the 
> >> > master.php
> >> > file  ... no good.  I tried using xpath in the feed.xml file to pull 
> >> > data
> >> > from the master.xml file... still no luck.  Perhaps I don't have the 
> >> > correct
> >> > syntax.  I'm not getting errors, just no data feed.
> >>
> >> I think you need to show samples of those feeds to allow us to
> >> understand in what way data is shared and what data exactly you want to
> >> update.
> >> And if you are looking for a PHP solution then there are better places
> >> than microsoft.public.xml to ask for help.
> >>
> >>
> >>
> >>
> >> -- 
> >>
> >> Martin Honnen --- MVP XML
> >> http://JavaScript.FAQTs.com/
> >>
> 
>  
> 
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent