-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: AjayThacker
Message 3 in Discussion
hi akshit, i am using the xml web server control. i am using the following code to get
the data and display using xsl:- .................. ..............
SqlDataAdapter da=new SqlDataAdapter(cmdToExecute);
DataSet ds=new DataSet();
da.Fill(ds);
Xml1.Document=new XmlDataDocument(ds);
Xml1.TransformSource="../Common/GetCriteria.xsl";
where Xml1 is the name of my xml web control.
Now the problem is it gets the data and displays it as xml, it is not transforming it
using the xsl file, it is reading the xsl file as i noticed it changed the background
color etc, but maybe it is not able to match the tags.
For ex:- my xml output is :-
Label <LINK href="../dp11d.css" type=text/css rel=stylesheet> language=JavaScript>
function SetOption(v) { window.returnValue=v;
window.close(); } </SCRIPT> <Options Name="Set">
<Option Value="3" Label="set1"/>
<Option Value="5" Label="set2"/>
<Option Value="1" Label="set3"/>
</Options>
and my xsl file is something like:-
<body>
<xsl:apply-templates select="*"/>
</body>
</html>
</xsl:template>
<xsl:template match="Options">
<table>
<tr><td><xsl:value-of select="@Name"/></td></tr>
<xsl:apply-templates select="Option"/>
</table>
</xsl:template>
<xsl:template match="Option">
<tr>
<td>
<xsl:value-of select="@Label"/>
</td>
</tr>
</xsl:template>
can u help me.
rgds
ajay.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]