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.
Created May 4, 2012
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