I'm trying to translate the following:
<?xml version="1.0" encoding="UTF-8"?>
<users_getInfo_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd" list="true">
<user>
<uid>0000</uid>
</user>
</users_getInfo_response>
using this XSL:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output method="html" encoding="UTF-8"
indent="yes" />
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="user">
<h1><xsl:value-of select="uid"/></h1>
</xsl:template>
</xsl:stylesheet>
and I get the following as the output:
<html>
<body>
0000
</body>
</html>
Any idea why this XSL doesn't work? The only way I can get it do work correctly is to remove the attributes from the users_getInfo_response element.
-Ryan