using url parameter to select XML node

admin

Administrator
Staff member
Hi,

I'm just starting out with XML and XSL

i have an XML file with current formula 1 driver profiles in it,

Is there a way in the XSL file to refer to a url parameter and select to show only the node that the url relates to

for example:

url would = <!-- m --><a class="postlink" href="http://www.mysite.com/profiles.xml?driver=jensonbutton">http://www.mysite.com/profiles.xml?driver=jensonbutton</a><!-- m -->

and the xml then selects the data for <driver>Jenson Button</driver> and all its child elements!

am i barking up the wrong tree here? can it be done with XML or would i need to feed the XML into a database and do it the normal database way??

Thanks in advance!!
 
Back
Top