CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Nov 2009
    Posts
    31

    Creating RSS via XSL?

    I document chnages to my website in news.xml with the following format:

    Code:
    <!DOCTYPE news [
      <!ELEMENT news (item*)>
      <!ELEMENT item (title,date,detail)>
      <!ELEMENT title (#PCDATA)>
      <!ELEMENT date (dow,year,month,day)>
      <!ELEMENT dow (#PCDATA)>
      <!ELEMENT year (#PCDATA)>
      <!ELEMENT month (#PCDATA)>
      <!ELEMENT day (#PCDATA)>
      <!ELEMENT detail (#PCDATA)>
    ]>
    if need I can retrofit it with an link element (i current generate a link field via PHP form the existing data)

    I would like to Add a RSS feed to the site But I don't want to have to update a second file ever time I make a site update

    Is it possible to make a valid RSS feed the uses say xsl transform of the first 10 entries in news.xml?
    Last edited by Roguebfl; January 12th, 2010 at 05:45 PM. Reason: correcting the DTD

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured