DotDragnet
May 21, 2012, 04:48:20 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: xslt help  (Read 1105 times)
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« on: October 25, 2007, 03:28:38 PM »

im learning the ropes of xslt's a the moment.
Everything was gong fine until i came acrros an xml tag like this:

<media:thumbnail url ="blah.com">...

normally if it was just <thumbnail url=... then i know how to reference the url but as it has the media tag with its own namespace i dont know how to reference the url.

Can anyone help?
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #1 on: October 25, 2007, 04:21:34 PM »

It's been a while since I did XSLT but I think you can include the Namespace in the top of your XSLT and then reference it as normal. Might be wrong though.

Something like:

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:media="media DTD in here">
Logged

SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« Reply #2 on: October 25, 2007, 04:46:44 PM »

jeep you are a genius! smile

It makes sense really but its a big learning curve from not knowing it at all thanks fo the help
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Jeep Stone
Hero Member
*****
Posts: 908



View Profile WWW Awards
« Reply #3 on: October 26, 2007, 10:20:37 AM »

lol I wish!
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!