Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Need a really basic XML Inclusion 101. Can anyone help?

Options
  • 26-05-2005 4:33am
    #1
    Business & Finance Moderators, Entertainment Moderators Posts: 32,387 Mod ✭✭✭✭


    I have an RDF feed http://www.santastrikeforce.com/index.rdf which is a feed of http://www.santastrikeforce.com/

    I want to include parts of that (the main central area) into another website which I have designed using Dreamweaver and left a table for the contents of the feed. I have a good understanding of basic XML and tags etc but no idea of the theory behind including this sort of thing (I've only ever programmed MAKING the feeds, not dealing with them on the receiving end).

    Can anyone give me a road map of where I should start and whats needed to do this? I have a PHP enabled server and Dreamweaver already, do I need any other third party add ons or installs?

    Thanks in advance, this will be used for SSF eventually but right now I'm playing with the tech to learn about it. Any pointers gratefully received.

    DeV.


Comments

  • Closed Accounts Posts: 9,314 ✭✭✭Talliesin


    I'd recommend writing an XSLT template that creates the HTML snippet you want to show on the site, and then having PHP apply the XSL and add it to the appropriate part of the page.

    I'll try to dig up an appropriate XSLT file for that (I did lots of examples when I was active in the RSS1.0 Working Group, it's a matter of finding them) though they are pretty easy. Just how to make PHP do the transform I couldn't say off-hand since I've only played with PHP a very tiny bit, but it's a standard operation for any server-side tech these days so documentation of that part shouldn't be hard to find.


  • Registered Users Posts: 2,157 ✭✭✭Serbian


    You can find a pre-built RDF Parser Class here:

    http://freshmeat.net/projects/php_rdf/


  • Business & Finance Moderators, Entertainment Moderators Posts: 32,387 Mod ✭✭✭✭DeVore


    Ok, Ok.... so far so helpful but I think you might be over estimating my understanding :)

    So, basically, the parser runs on the recipient machine?? it spits out html somehow? and I use a scripted "include" to merge that html into my design... is that right?

    DeV.


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    DeVore wrote:
    Ok, Ok.... so far so helpful but I think you might be over estimating my understanding :)

    So, basically, the parser runs on the recipient machine?? it spits out html somehow? and I use a scripted "include" to merge that html into my design... is that right?

    DeV.
    If you're talking about what Talliesin means, then basically yes. The browser uses a language called XPath to parse the information, and the XSLT (eXtensible Stylesheet Language Translations) converts the XML into XHTML, or anyother XML-based markup specification of your choice.


  • Registered Users Posts: 7,739 ✭✭✭mneylon


    Tom

    The simplest thing to do is grab an RSS to Javascript converter, so you can then offer the feed to just about anybody who wants to use it.

    Very easy to setup :)


  • Advertisement
  • Business & Finance Moderators, Entertainment Moderators Posts: 32,387 Mod ✭✭✭✭DeVore


    I'm still confused. BK... I dont want to offer the feed, I want to take the feed from http://www.santastrikeforce.com/index.rdf and include it in a table in another php page on another server on another site...

    My head hurts :(

    DeV.


  • Closed Accounts Posts: 9,314 ✭✭✭Talliesin


    Bugger. I meant to dig out some stuff on that for you. Will tonight, definitely (-ish).


Advertisement