i have this simple xml code and i placed some xlink stuff
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Homepages xmlns:xlink="http://www.w3c.org/1999/xlink">
<homepage xlink:type="simple"
xlink:href="http://www.w3schools.com">Visit w3schools</homepage>
</Homepages>
but then when i run it on a browser, it just output the code itself
because of this, i created an xslt file to accompany the output
Code:
//xml with xsl stylesheet
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xlink.xslt"?>
<Homepages xmlns:xlink="http://www.w3c.org/1999/xlink">
<homepage xlink:type="simple"
xlink:href="http://www.w3schools.com">Visit w3schools</homepage>
</Homepages>
Code:
//XLS FILE
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title></title>
</head>
<body>
<h1>
<xsl:value-of select="." />
</h1>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and here's the new output
it didn't produce a link ..what should i do now ?