473,287 Members | 1,418 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

xsltCompileTransform in vs 2005

hi,
i m converting my vs 2003 web site in vs 2005. i have used XslTransform
in 2003. here the code i have in my 2003 project
XslTransform xslt = new XslTransform();

xslt.Load(XslSystemFileName);

XPathDocument xpathdocument = new XPathDocument(XmlSystemFileName);

XPathNavigator nav = xpathdocument.CreateNavigator();

//Transform

XPathExpression expr= nav.Compile("/TOPICLIST/*");

XPathNodeIterator iterator = nav.Select(expr)
while (iterator.MoveNext()){

StringBuilder sb= new StringBuilder();

StringWriter sw = new StringWriter(sb);

XPathNavigator nav2 = iterator.Current;

string sName = nav2.GetAttribute("TYPE","");
XsltArgumentList xsltArgs = new XsltArgumentList();

xsltArgs.AddParam("MenuItem","",sName);

xsltArgs.AddParam("MenuType","",sMenuType);

xslt.Transform(nav2, xsltArgs, sw, null);

sGenericMenu=sb.ToString();

if (null!=alMenuTypes)

alMenuTypes.Add(sName);

}

if i use XslCompileTransform instead of XslTransform i am not getting the
proper output.

what should i do to resolve my problem.

thanks
May 18 '06 #1
0 709

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.