dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: XML, HTML
Expertise: Beginner
Nov 15, 2003

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Simplifying the Creation of Links when Transforming XML with XSLT

When transforming XML to HTML you often have to create links on your page. Use this syntax to simply this task.

<xml>
  <contact name="Kris" url="kris@somewhere.com"/>
</xml>
Long way:

<a><attribute name="href"><xsl:value-of
select="@url"/></attribute><xsl:value-of select="@name"/></a>
Short way:

<a href="{@url}"><xsl:value-of select="@name"></a>
DevX Staff
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date