You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Kumar, Ritesh (GEP, Contractor)" <Ri...@gepex.ge.com> on 2000/08/30 17:45:48 UTC
Not able to provide link...
Hi
I tried to provide a link to yahoo website from a point in my xml
page.Following are my xml and xsl files, but I donot know why it is not
working.
Please help...
XML File
<?xml version="1.0"?>
<page>
<pagename>Introduction</pagename>
<title>
<title_name xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="http://www.yahoo.com">
Engineered Blow Molding Part Design
</title_name>
</title>
</page>
XSL File
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="page"/>
</xsl:template>
<xsl:template match="page">
<html>
<head>
<title> <xsl:value-of select="pagename"/>
</title>
</head>
<body topmargin="0" vlink="#34699E" alink="#34699E" link="#34699E">
<table border="0" cellpadding="0" cellspacing="0" width="716">
<tr>
<td height="20" valign="top"
align="left"><xsl:apply-templates select="title"/>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="title" >
<xsl:value-of select="title_name"/>
<xsl:value-of select="title_decoration"/>
</xsl:template>
</xsl:stylesheet>
Regards,
Ritesh kumar