Click here to Skip to main content
15,888,802 members
Everything / Programming Languages / XSLT

XSLT

XSLT

Great Reads

by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
by Marco Merola
Creating PDF documents from XML
by Dan Radu
The DACBuilder application provides auto-generation features from multiple database systems in multiple programming languages.
by Gavin Sinai
Using the open source Saxon library, .NET programmers can benefit from XSL 2.0 and XQuery 1.0.

Latest Articles

by Patrice T
My learnings and the problems that I encountered while making my very first Stylesheet for ToDoList
by HenkAlles
Show Simple Log - see the article by Jochen Scharr - in the browser with a nice layout
by Chris Stefano
A custom tool for Visual Studio .NET which runs an XSL transformation to generate code
by thatraja
Using XSLT version 1.0 to group XML using Multiple Columns

All Articles

Sort by Title

XSLT 

22 May 2014 by Naomi Kanazaki
Hello, I have a question...1) I am using Visual Studio 20132) I am using ASPX C#3) My chart is in SWF4) my files are banks.aspx , banks.xml , banks.xslt and banks.aspx.csEverything was OK before I used xslt to make my data from xml in ascending order..I have done all I can to make...
22 May 2014 by Naomi Kanazaki
Here is my banks.aspx.cs file, http://pastebin.com/raw.php?i=CzSbja23
4 Jan 2009 by tomkettering
Happy New Year,Strange one to start the year off, any help would be appreciated.I have a Winform Project calling a web service.   passing in an XML string.When I pass through my XML to the webservice, it works fine and gets inserted into the...
5 Jan 2009 by led mike
tomkettering wrote:the XML the dataset does not create correctly? "does not create correctly" means what? The following C# produces the email address as expected.string sxml = "hello@mymail.com";DataSet ds = new...
7 Sep 2006 by Riaan Hanekom
20 Sep 2005 by Matthias Hertel
Calling a server from JavaScript is a fundamental part of AJAX applications. Using WebServices with SOAP and WSDL is easy if proxy objects and methods are available in the browser.
26 Feb 2009 by Lindsey Lewis
An article about a tool for comparing SQL database schema versions
25 Jul 2006 by Neeker007
A well look HTML menu using XML and XSLT
20 Jul 2009 by Lonnie R Thomas
I am trying to add an accordion control to one of my pages.Following is the code: ...
21 Jul 2009 by jinaka
Add CSS class for accordion header and content.then error will dissapear..... 56464564564
3 May 2010 by Sandesh M Patil
You seem to be missing .Also, make sure you've included the AjaxControlToolkit's DLL in your project. You can also check outLink for some tips on fixing AJAX problemsHope this may help u... :)
16 Dec 2011 by SureshNagalla
make sure you've included the SelectedIndex="0" property of and in accordian tag we should have implemented at least 3 properties along with id , runat properties Hope this may help u...
3 Aug 2017 by Member 13344557
Have you figured out a solution to this? I need to do exactly this as I am getting the XML file as-is from another vendor. The problem is where we send it to they pull out the middle section of the XML (where I need to add these namespaces to this "new" root node). Don't ask me why they can't...
24 Dec 2010 by RoUsbelle
Hello!I have an xslt and I have an excel file with format. I need to add an autofilter to the second row which has the table headers.I've tried addingas described by XML Excel Reference, but it's not working.I...
3 Sep 2010 by kuwl_mark
Hi friends,I am creating XML file from data base and transform that file to xslt.Problem i am facing that how to add newline character and bold tag in node in my xml file look likeI want Makarand in boldand newline after , after makarand and thanks and regardsPlease suggest me...
3 Sep 2010 by Sandeep Mewara
Have a look here:XSL Transformations (XSLT)[^]For quickview, look at "2.7 Embedding Stylesheets"
24 Jan 2011 by its unclear
1]"/> ...
24 Jan 2011 by E.F. Nijboer
Have a look here for xslt 1.0 answer:http://www.xml.com/pub/a/2001/05/07/xsltmath.html[^]xslt 1.0 and 2.0:http://www.stylusstudio.com/xsllist/200610/post70120.html[^]Good luck!
12 Jun 2008 by subbiahkk
An AJAX textbox user control with auto-suggest functionality.
19 Mar 2009 by pzn3xq
I'm reading up on the ajax documentaiton and had a question on partial page updates...1) So do partial page updates only target controls that reside within an Update Panel?2) Even if a partial page update occurs, isn't a postback really truely...
19 Mar 2009 by fly904
pzn3xq wrote:1) So do partial page updates only target controls that reside within an Update Panel?I am confussed by what you mean with this.pzn3xq wrote:2) Even if a partial page update occurs, isn't a postback really truely occurring behind the...
7 Jul 2003 by Johan Danforth
A BLOG tool ready to use. Post weblogs to an XML file from a windows application via Web Service. Uses SOAP Headers for authentication. Uses simple XSL Transformation for the RSS feed.
13 Sep 2005 by Marc Clifton
Convert your XML object graph to code using CodeDom
25 Jun 2012 by rahulaaditya
Hi all,I need your help for invoking anchor tags using xslt. I have all my footnotes contents below in my xml file and they are numbered. These numbers will also be in the main content of my xml file. So when i click on the number inside content, it should take me to the respective footnote...
25 Jun 2012 by Andreas Gieriet
1. Write the expected HTML manually.2. Write an XSLT that converts the XML into that HTMLSounds quite simple and straight forward, I think.If you struggle with writing the expected HTML, ask a respective question.If you struggle with generating the anchor name, look at the...
28 May 2017 by tranthanhtu.vn
In this article, we will see how to use multi-languages(i18n) in angular2
15 Jun 2017 by tranthanhtu.vn
In this article, we will why and why not using DI & IoC from my real situation.I did not tell you that DI is not good. From my view, each tech has it own pros and cons. So It is better if we know when we can use which techs for our business.
28 May 2017 by tranthanhtu.vn
In this article, We will have a look to unserstand how RESTful/WebApi was applied in my code
4 Jul 2017 by tranthanhtu.vn
This tip explains how we should structure our project folder
5 Nov 2014 by Sanjeev Alamuri
Hi everyone, I have a set of xml data , which is coming from database, and im binding that xml to xslt, bt where im struck is, i wanted to add xslt returned output to html element like div, table etc.protected string RenderFolderBasedTree() { // I...
5 Nov 2014 by Sergey Alexandrovich Kryukov
First, you need to compile your XSLT, and then you can apply it to any XML. This is done using the class System.Xml.Xsl.XslCompiledTransform:http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform%28v=vs.110%29.aspx[^].Pay attention for the methods...
5 Nov 2014 by George Jonsson
This is a good place to start if you need information for how to create the XSLT file itself. XSLT Tutorial[^]The tutorial is about how to convert XML to HTML using XSLT.You can use Visual Studio to edit and debug your XSLT.When you have a proper XSLT file, you can use the methods in...
5 Nov 2014 by Sanjeev Alamuri
simply added below codeStringWriter results = new StringWriter(); using (XmlReader reader = XmlReader.Create(new StringReader(sb.ToString()))) { oXSL.Transform(reader, null, results); } return results.ToString();it is return the data in string formatso...
24 May 2013 by milkncookiez
So I am loading an XML document, then I load XSLT code, I apply transformation on the loaded XML with the XSL and then I want to save the transformed XML on the place of the loaded one, basically replacing the object. This is how I am trying:Dim myXmlDoc As New XmlDocument() ...
24 May 2013 by Yvan Rodrigues
Here is one way of doing it. In this case I am using the Altova library because for this client I needed XSLT2 support.using System;using System.Text.RegularExpressions;using Altova.AltovaXML;namespace RedCell.App.XsltTransformer{ /// /// Transformer does the...
24 May 2013 by Yvan Rodrigues
The example from the docs seems pretty straightforward:' Load the style sheet.Dim xslt As New XslCompiledTransform()xslt.Load("output.xsl")' Execute the transform and output the results to a file.xslt.Transform("books.xml", "books.html")The Transform method has lots of...
31 Mar 2010 by Ilka Guigova
Setup: A data from one module is passed into another so that Module 1 takes a (flat) file as input and feeds an xml structure into Module 2. While Module 2 is internal, Module 1 is designed to handle different customer inputs into the system. However, it is not always possible to generate the...
9 Oct 2006 by valdo_gmail
Retrieving data from XML using column indexing.
3 Jan 2016 by Bryian Tan
ASP.NET Password Strength Indicator/Checker Version 2.0 somewhat similar to AJAX PasswordStrength extender control behavior and implemented by utilizing jQuery and XML.
31 Jul 2012 by Bryian Tan
ASP.NET Password Strength Indicator somewhat similar to AJAX PasswordStrength extender control behavior and implemented by using jQuery and XML.
9 Apr 2013 by gavkk
in my xslt file I haveand suppose value of htmlPath is "C:\Users\\Desktop\". How can I assign variable filename as htmlPath+"abc.html"
4 Mar 2013 by mubashir9093
I am displaying nodes of an XML file row wise using XSLT. With each row I want to display Link Button . When the user clicks the Link Button, I want to display that particular row of XML whose Link Button is clicked by the user. That means I need to associate row ID or Row name or Tag name in...
4 Mar 2013 by mubashir9093
Yes I got the solution by myself.I did something like this in my xslt sheet:
30 Jul 2013 by akee seth
Hi all, I want to attach an xml file with xsl applied to it in my mail.In my project, when i select an xml file and send it to someone(to address), then it should attch that xml file with xsl applied to it and sent to toAddress.I have written code, but its added in body. I want it to...
31 Jul 2013 by H.Brydon
This is not an authoritative answer but something you can try. If you embed a reference to the xsl transform in the xml file header, some Microsoft products (eg. IE) will see the transformed xml instead of the source.Your question is vague - I'm not sure if that meets your needs or does...
4 May 2012 by Sandeep Mewara
Please go ahead and do it. Posting problem statement expecting a code from us - It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you...
4 May 2012 by Member 8644684
i have a small problem on this program : i see many site for xssl example but all of them work on xml files that containt similar tag example : on above example each stu tag has similar tag but my problem is : when each stu tag has not similar tag must what to do?...
10 Sep 2010 by LoisFrancine
How do I create a batch program to transform XML to XML using XSLT? I am a novice at batches, but it is vitally important.I know the theories behind running a batch, I just need to know the best tools and/or programming language to use to run this type of batch.
10 Sep 2010 by Sandeep Mewara
Steps:1. Find the XML to transform. Get it. (can be webservice response or in a text file located on an accessible path)2. Get the XSLT (probably in a file located at accessible path)3. Use the XSLT, apply on XML to get converted final XML. 4. Save the converted final XML for further...
12 Sep 2019 by Sean Ewington
Web development beginner tutorials. A compilation of web development tutorials that serve as a beginner's walk to web development
5 Dec 2006 by Bill Albing
Sas Jacobs’ book ''Beginning XML with DOM and AJAX: From Novice to Professional'' published by Apress is a wonderfully succinct introduction to the world of Web development, which today means being able to manipulate XML in any of its various forms.
16 Feb 2010 by dawright, ProtoBytes
A heurisitc graphing tool to help discover 'Big O Notation' function thru infinite asymptotic's and instrumentation.
4 Jan 2014 by nithibs
HI,Below is my xml pattern, now i need to bind these xml to xslt. Quote1 xyz chennai yyyyyyy ...
4 Jan 2014 by nithibs
HI,,I solved this myself..Below is the Solution..
16 May 2013 by hardiksince1987
Hi I have following data. I want to bind this data twice(same node twice) using Xslt. Can anyone suggest a way?ToveJaniReminderDon't forget me this weekend!Tove Jani Reminder Don't forget me this...
16 May 2013 by debkumar@codeproject
Write the same snippet of XSLT twice.
16 May 2013 by H.Brydon
I'm not sure what you mean by "bind" in this context, but to do xslt processing on a node twice, you need to setup a rule in the xslt that matches the node, and duplicate the processing within the xslt node. I don't believe there is a way to get an xslt rule to fire twice on the same data.
12 Sep 2014 by Remzi Karahasan
Hi there,I have two source message and one destination message. (Eventually I would like to have another destination message to map only invalid records.) What I want to do is, loops through source message part one, compare against the source message two and find out if there is any...
6 Mar 2015 by prachi_pandey
Map fields from multiple schemas to fields of a single output schema
17 Sep 2007 by Vidhya Rao
This article discuss about functoids that help with Mapping in BizTalk Server
30 Jun 2016 by senthill
This article describes how to customize master page, how to customize home page and it will give you tips to improve the look and feel of the SharePoint site.
7 Jun 2006 by Dmitry Khudorozhkov
This article presents an XML/XSL/XSD browsing and validation tool, a shining example of how various technologies like Shell scripting, Scripting Runtime, or HTA can be put together to aid programmers in rapid development of powerful script-based applications.
25 Sep 2006 by Thomas Kurek
You need to build a dynamic sitemap right from a dataset because you don't have static content on your website.
4 Nov 2013 by nithibs
Hi Frnds, I need ur help in order to complete my tasks.. i need to secure the URL parameters say, i have a page which loads based on a id. This page is redirected from XSLT using a href link. ...
6 Nov 2013 by nithibs
Hi,I solved it myself... create a encryption logic in webservice and call that webservice in master page using jquery and create a decryption logic and decrypt when the specific page loads..ThanksBS
25 Jun 2014 by SibeeshKV
Calling an ASMX webservice from other server using jquery and PHP
9 Mar 2015 by ajitdstar4u
one of my XSLT page contains this code, can any one help me to understand what exactly it will return. ...
9 Mar 2015 by E.F. Nijboer
Why not test it amd check the results? Have a look at a tool you can find here on codeproject:A (very) simple XSLT test utility[^]Or try it online:http://xslttest.appspot.com/[^]Good luck!
9 Mar 2015 by ajitdstar4u
it will always give the Vendor as number due to number(DMS_Document/Payload/DMS_DispatchResponse/Message/Vendor)<xsl:if test="string-length(DMS_Document/Payload/DMS_DispatchResponse/Message/Vendor) != 0"> ...
18 Oct 2012 by Sagar Khairnar 55
Hello all,I am trying to create and xml with the help of c# object.right now i am having one order object and with the help of XslCompiledTransform i want to create a xml file by applying xsl on it.But XslCompiledTransform take the parameter as string input uri or xml readerso my...
18 Oct 2012 by Sagar Khairnar 55
Solved:the below method ObjectToXml take the obj and filename as the parameters and with the help of XmlSerializer it create the xml file on the given path namespace Utility{ public class Serial { public static void ObjectToXml(object obj, string path_to_xml) ...
4 Sep 2013 by Sagar Khairnar 55
Hi all,I have an query, can anyone tell me can we create xslt from XSD schema.My requirement is,I have to an XSD Schema of Order.I want to create an new xml file for every order based on the data of OrderObject.I am suppose to creating the order_xml with the help of Xslt by...
4 Sep 2013 by Menon Santosh
yes you can refer following linkshttp://social.msdn.microsoft.com/Forums/vstudio/en-US/2cc286ca-4903-45a3-b0e6-e2ef397ca590/generate-xslt-from-xsd-file-in-c[^]http://stackoverflow.com/questions/8369677/using-xslt-to-transform-multiple-xml-schema-documents[^]
18 Jun 2014 by RajaSekhar Korimilli
can we use XslTransform for .NET 3.5 as XSLCompiledTransform is taking lots of time to compile the whole XSL StyleSheet. It is taking almost all the memory.
19 Jun 2014 by Valery Possoz
Hello,Yes you can.http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltransform(v=vs.90).aspx[^]XslTransform xslt = new XslTransform();xslt.Load("http://server/favorite.xsl");XPathDocument mydata = new XPathDocument("inputdata.xml");XmlWriter writer = new...
27 Apr 2018 by IslandFreedom
I am calling an xslt.Transform from C# to convert an XML file from an old format to a newer format. Is there any way to report on fields that are not in the new format that were in the old? I was hoping to create an error report to alert the user on fields that they would need to manually...
24 Jan 2014 by vicvis
Hi All,I am new to XML conversion and stuck with a problem. I wish to change XML format of an input XML to get desired format.My input XML is
24 Jan 2014 by Pete O'Hanlon
What you seem to be doing here is actually changing the values that are inside your XML. Looking at your example, Address has a new attribute called StreetName. All you need to do is read in the XML (I would use XLINQ for all of this), and iterate over each Address element - add a new StreetName...
24 Mar 2012 by mohsen_alikhani
How to change the value of the global variable in XSLT ?
25 Mar 2012 by Nelek
Take a look to oncle google[^]
25 Mar 2012 by mohsen_alikhani
Once you have set a variable's value, you cannot change or modify that value!http://www.w3schools.com/xsl/el_variable.asp[^]
9 Feb 2015 by samadhan_kshirsagar
Hi All, I have one html file. i want to clean up this html file(Remove all attributes) and get plain html file by using xsltfor that purpose I have written following xslt file
1 Nov 2006 by Lou Franco
This article will show you how to use the Atalasoft DotImage AJAX-enabled Web Image Viewer and Web Thumbnail control to navigate multi-page TIFFs, add controls to call clean-up routines, and update the browser without a post-back.
20 Mar 2018 by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
26 Jan 2016 by Member 11698441
Im using XSLt to transform a table and XML data to show in the UI page, This is my questionI...
26 Jan 2009 by Gil Shabat
Real-world Use Case: a flexible approach to present dynamic content with SQL Server, ASP.NET, and XSLT.
6 Aug 2013 by pramod.hegde
Converts DataTable to XML, XSD, or HTML using XSLT and C#
22 Mar 2013 by Nonestop
I want to convert excel file into xml file applied XML schema(xsd file).Input is XSD and Excel file, and output is schematized xml.(I guess the files format are correct, because those were provided as template by supplier's site.)I found some samples in codeproject, but the result...
1 Nov 2017 by Saurav J
Convert table from outlook email body into datatable or list using .NET C# EWS Managed API and HtmlAgilitypack
16 Apr 2015 by kingddd
Introducing a new tool to transform trx (mstest results file) into HTML report
1 May 2006 by Brian Mulder
An article about using XSL to transform XML to CSV
28 Oct 2010 by Sandeep Newad
Expected table in excel will look like below:DivisionRegionSales TeamUSWestABCxyzEastasdlmnIndiaWesthgnEastOLM
28 Oct 2010 by Sandeep Newad
hi,I am new to xml and xslt. I am converting xml to excel using xslt, I am facing one issue while merging cells with having common data from a colom. I come to know that I can use ss:MergeDown attribute to cell to merge two or more cells but I dont know how to identify cells those are having...
17 Nov 2010 by denishverma
thanx but not useful.. give me specific linkif possible in php or any online converter.urgentthanks Dinesh
17 Apr 2021 by Pankaj Patel yosa
How can i write multiple values in the same line and value should be write between specific position. XML File:
9 Feb 2015 by ramina sen
i want copy few attrbute from one node to another node using XSLT stylesheete.g input:Test1 a1="123" a2="234" a3="567" Test2 b11="123" b2="234" b3="567" /Test2>outputTest1 a1="123" a2="234" a3="567" b11="123" b2="234" b3="567" Test2 b11="123" b2="234" b3="567"...
11 Mar 2010 by Bibhudatta M
Hi ,I have a XML file having the structure as below:- TableCellInsertion 5 Cell srirangadiwakar TableCellInsertion 9 Cell srirangadiwakar But requirement to create axslt file on the above xml and generate as ...
5 Mar 2013 by ANDiyo
Hey there,like the title of the question already says, I want to create a Gantt-Chart using xml, xslt and get a html page with the result. Now my question is, because I didn't find a good one, if there is a good tutorial for that.ThanksANDi.
19 May 2006 by Mike DiRenzo
This is a technique describing how to create node-tree-fragments in XSLT using C#. Additionally, this aritcle describes how to use C# in XSLT.