This is a bad idea

Status
Not open for further replies.

Zex

Posts: 7   +0
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.
 
Status
Not open for further replies.
Back