I'm trying to do a simple XSL conversion from an XML file that I receive from a rest call using a script in VB wrote by myself. This is XML that I receive (after clean up):
<?xml version="1.0" encoding="utf-8"?><result xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.teradp.com/schemas/GN4/1/Results.xsd"><objsListResult><obj id="4" descName="Administrator user" /><obj id="5" descName="Guest" /><obj id="1608" descName="MashupUser" /><obj id="1610" descName="ServiceUser" /><obj id="2209" descName="Brenda Perez Lastra" /></objsListResult></result>
This is the simple XSL file that I wrote for it:
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><html><body><h2>GN4 User Information</h2><table border="1"><tr bgcolor="#9acd32"><th>Obj ID</th><th>User Complete Name</th></tr><tr><td> <xsl:value-of select="obj/@id"/></td><td> Some Text </td></tr></table></body></html></xsl:template></xsl:stylesheet>
The HTML code that XSLT makes show the table and you can see the cell with "Some Text" written on it (as I specified in the XSL code) but when it comes to print the content of the "id" attribute I receive nothing. I played with the Xpath a little bit thinking that I did something wrong in the path but I always receive nothing!