TechSpot

This is a bad idea

By Zex
Aug 29, 2005
Topic Status:
Not open for further replies.
  1. Hey guys, Im having a problem with some XML stuff, Im more than likely WAY Off topic here, but I was curious if anyone could help me out? Maybe an Admin can add a coding section? (More visitors, yay!).

    Alright, here's the deal, I've got an XML File, let's just say it looks like this:

    <people>
    <person>
    <name>John Doe</name>
    <address>123 WTF Lane</address>
    </person>
    ...
    </people>

    Im looking to make it create a link out of say, his name, and I dont know what the XSL should look like to do so...

    Something like:
    <a href="index.php?page=people&view=person&id={name}"><xsl:value-of select="name"></a>

    But whenever I have multiple variables in a link carrying through to a PHP file, it comes back with some error. Any thoughts?

    Again, Im aware that this is probably in the wrong section, but I figured this to be the best place to come to look, if a GM feels the necessity to move the topic, Feel free.

    Thanks ahead of time, and my apologies are extended.
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.