I have a problem in accessing the values while transforming an XML using XSLT
-
BODY { FONT: x-small 'Verdana'; MARGIN-RIGHT: 1.5em } .c { CURSOR: hand } .b { FONT-WEIGHT: bold; COLOR: red; FONT-FAMILY: 'Courier New'; TEXT-DECORATION: none } .e { MARGIN-LEFT: 1em; TEXT-INDENT: -1em; MARGIN-RIGHT: 1em } .k { MARGIN-LEFT: 1em; TEXT-INDENT: -1em; MARGIN-RIGHT: 1em } .t { COLOR: #990000 } .xt { COLOR: #990099 } .ns { COLOR: red } .dt { COLOR: green } .m { COLOR: blue } .tx { FONT-WEIGHT: bold } .db { MARGIN-TOP: 0px; PADDING-LEFT: 0.3em; MARGIN-BOTTOM: 0px; FONT: small Courier; MARGIN-LEFT: 1em; BORDER-LEFT: #cccccc 1px solid; TEXT-INDENT: 0px } .di { FONT: small Courier } .d { COLOR: blue } .pi { COLOR: blue } .cb { MARGIN-TOP: 0px; PADDING-LEFT: 0.3em; MARGIN-BOTTOM: 0px; FONT: small Courier; MARGIN-LEFT: 1em; COLOR: #888888; TEXT-INDENT: 0px } .ci { FONT: small Courier; COLOR: #888888 } PRE { DISPLAY: inline; MARGIN: 0px } <?xml version="1.0" encoding="utf-8" ?>
-
<EmployeeInfo xmlns:xsi="]http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
<EmployeeAddress xsi:nil="true" xmlns="http://xml.netquote.com/employee/types" />
-
-
<IsEmployee xmlns="http://xml.netquote.com/employee/types">false</IsEmploye>
-
-
<NumberOfUsers xmlns="http://xml.netquote.com/employee/types">0</NumberOfUsers>
-
-
<EmployeeType xsi:nil="true" xmlns="http://xml.netquote.com/employee/types" />
-
-
<EmployeeNumber xmlns="http://xml.netquote.com/employee/types">1119100010000</EmployeeNumber>
-
</EmployeeInfo>
-
MY XSLT -
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xml.netquote.com/employee/types"
-
>
-
<xsl:output method="xml" indent="yes"/>
-
-
<xsl:template match="/">
-
<html>
-
<body>
-
<h1>Employee Listing</h1>
-
<table border="1">
-
<tr>
-
<th>EmployeeAddress</th>
-
<th>IsEmployee</th>
-
<th>NumberOfUsers</th>
-
<th>EmployeeNumber</th>
-
</tr>
-
<xsl:for-each select="EmployeeInfo">
-
<tr>
-
<td>
-
<xsl:value-of select="EmployeeAddress"/>
-
</td>
-
<td>
-
<xsl:value-of select="IsEmployee"/>
-
</td>
-
<td>
-
<xsl:value-of select="NumberOfUsers"/>
-
</td>
-
<td>
-
<xsl:value-of select="EmployeeNumber"/>
-
</td>
-
</tr>
-
</xsl:for-each>
-
</table>
-
</body>
-
</html>
-
</xsl:template>
-
</xsl:stylesheet>
Here when i transform i am not getting any values in the browser. When i get the values i need to assign it to dataset.
Thankyou