.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Transforming into xslt

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :ASP.Net
Hi,I have some xml data which have lot of controls, i need to generate via xslt. under the ajax tab. Now i am stuck in one area, how i can use loop under the tab of ajax tabcontainer.Below is the my xslt.<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:asp="remove" xmlns:cc1="remove"> <xsl:output method="xml" indent="yes" encoding="utf-8"/> <xsl:template match="/"> <cc1:TabContainer ID="TabContainerContent1" runat="server" ActiveTabIndex="0" Height="300px"> <cc1:TabPanel runat="server" HeaderText="Welcome" Text="Welcome" ID="TabPanel1" <ContentTemplate> contents of tab 1 <br /> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </xsl:template> </xsl:stylesheet> I need loop through TabPanel so i can create accoardingly the xml file. Could you please let me know how i can do the loop for the The TabPanel?BR,

View Complete Post

More Related Resource Links

100% cpu usage while transforming 2 datasets into xml using XSLT



I have a program that every second gets 10 messages over the net.

Each message made up of 1 heavy dataset.

In Addition, i have another heavy static dataset which not change.

For every message the program transform the message's dataset's data and the static dataset's data to output xml using XslCompiledTransform and my  Stylesheet (51 KB).

While the transformation process i have noticed that my program riches %100 cpu for some reason.

i cannot figure out what is the problem... does any one has any ideas ?

thanks, Niv (Sorry for my bad english)

Line Break Problem in XSLT


Hi All,

I want to add line break in the xslt but it not working.

Below is the code for adding the line break.

</P> <P>
&lt;xsl:variable name="Collection7"&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$13932"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&nbsp; &lt;xsl:value-of select="$31042"/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;</P> <P>&lt;/xsl:variable&gt;</P> <P>&lt;td&gt;&lt;xsl:value-of select="$Collection7"/&gt;&lt;/td&gt; </P> <P>&lt;/code]</P> <P>I have tried the below code as well:</P> <P>&lt;xsl:variable name="newline"&gt;
&lt;/xsl:variable&gt;</P> <P>or</P> <P>&lt;xsl:variable name="break"&gt;&amp;lt;br&amp;gt;&lt;/xsl:variable&gt;</P> <P>or </P> <P>addign &lt;br/&gt;</P> <P>then also it not adding the line break.</P> <P>But If I write code like below then it is adding the line break and it works fine.</P> <P>

The XML Files: IntelliSense for XSLT, Namespace Collisions, and More


XSLT: Simplify Development and Maintenance of Microsoft .NET Projects with Code Generation Technique


Code generation techniques using technologies such as XSLT are playing an increasingly important part in software projects as they support the development of a rapidly maintainable code base. This article discusses some of the benefits and possible applications of code generation.To demonstrate these techniques the author develops a Web Forms application that supports the maintenance of records in a SQL Server database, using the database's own metadata to drive the generation process. The SQL Server database schema is extracted using SQLXML 3.0 data access and processed through XSLT stylesheets that generate both a database access layer and a Web Forms user interface with query and update pages.

Peter Ashley

MSDN Magazine August 2003

The XML Files: XSLT Keys, Select vs. Match, Conflict Resolution, and More


This month Aaron Skonnard covers how keys work in XSLT, XSLT match and select attributes, SelectNodes order, finding