hi
i m transforming my xml file by XSLT
now the prob is how can i get the values of attributes of elements of xml in xslt file.
e.g the tag <a href="....")
now how to get the value of href and make it as link?
| SitePoint Sponsor |



hi
i m transforming my xml file by XSLT
now the prob is how can i get the values of attributes of elements of xml in xslt file.
e.g the tag <a href="....")
now how to get the value of href and make it as link?
its urgent plzzz.....
regards
phphelp





Did you check the forum archives? Looks like there is a pretty good answer here.![]()
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
Showcase your music collection on the Web


Use the @
Code:<xsl:template match="a"> <xsl:value-of select="@href" disable-output-escaping="yes" /> </xsl:template>
Studio Rockstar's Blog - A journey to quitting the dayjob.
Bookmarks