I have to create a HTML page using XML and XSL that will have a button on it that will open a url. How can I put the url address in an html link? The url address is in xml tag.

Seok-jeong Hwang

 

 

Let's suppose a document segment like below.

 <person>
 <name>Blabla</name>
 <home>blabla.com</home>
 </person>


Then following XSL segment will make above segment an HTML link.

<xsl:template match="person"> <a><xsl:attribute name="href"> <xsl:value-of select="home"/> </xsl:attribute> <xsl:value-of select="name"/></a> </xsl:template>

Then following will be displayed.

Blabla

This page will provide you more information.
http://metalab.unc.edu/xml/books/bible/updates/14.html 

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


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

 

 

About | Sitemap | Contact