Click here to Skip to main content
15,889,176 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 Updated

XSLT 

1 Mar 2011 by #realJSOP
Why don't you just load the file as text, and do approproriate Replace calls on it:string myXML = // load the file into this stringmyXML = my.XML.Replace("", "").Replace("", "");myXML = my.XML.Replace("",...
1 Mar 2011 by #realJSOP
I still think loading it as text and doing replace based on tag names in a app.config is easier, but with some minor googling, I found this example, and you could have to: ...
13 Jun 2022 by .Net Perfect Dev
​ Hello, i want to validate by xsd an attribute can contain a float type or a word "exist". after search in the net i found this solution(https://www.w3schools.com/xml/schema_facets.asp)� but it does not worked. how to fix that ? ​ What I have...
13 Jun 2022 by .Net Perfect Dev
ok this is an exemple : xml file: and this is the xsd file which i tried:
12 Jan 2014 by 1Future
I have created an XML and XSL file to be loaded onto a webpage as HTML. for some reason this is not working .. the data isn't being displayed in a table on to a web browser.Here is my code below, is there anything that i am missing? please help?XML file
13 Jan 2014 by 1Future
i have created a table using HTML, XML and XLST. the I am creating a table using a for-each loop which inserts the data from the xml file.Once the table is filled with data, i would like every cell that is clicked to display dialogue message box.Code for XML file: ...
27 Aug 2014 by _Asif_
Check thisDoes xslt have split() function?[^]
29 Jan 2015 by _Asif_
You can start from hereConvert date time format in XSLT[^]
10 Oct 2013 by AB-ishere
Hello my Seniors,I am beginner in the industry and has been given the task to create XSLT file from one of the clients Microsoft Word template and guess what I am struggling :-( I dont want to sound too demanding, but if you can guide me I will be able to get this done. I have...
22 Mar 2015 by abdul subhan mohammed
Hi guys,I have asp.net web application,where i have to convert xml to html.for that i was creating xslt file but unfortunately i'm getting one error while writing the xslt code.i have some thing like this in xml fileCopyright 2015when i'm writing...
24 Mar 2015 by abdul subhan mohammed
Hi guys,I have one xml file, where i have this يحسم مجلس الشورى اليوم (الثلاثاء) تحويل الرئاسة العامة لرعاية الشباب إلى وزارة للشباب والرياضة، حيث سيناقش توصية...
16 Nov 2014 by Abdullah Kundi
this is my xsl line this is datetime "Attandence_x0020_Date" which i want to show in correct format 11/17/2014 2:30 PMbelow is my xml line that contains date time2014-11-17T00:00:00+05:00please help
8 Sep 2013 by Abhas Verma
How can I dispaly an image in a GRID OR A TABLE and then publish it as a pdf based upon the values of a particular column of a database.?
28 Jun 2011 by Abhinav S
Have a look at this[^] - it may help you.
3 Jan 2016 by Abhinav S
If your printer provides an API through which you can read the documents being printed, you will be able to track a printed doc.For example, here is an Embedded Capture Solution from HP - HP Embedded Capture Solution | HP® Official Site[^].
30 Mar 2016 by Abhishek Kumar (here to help!!)
I'm new to xml and xslt. and I'm stuck with it:I've following XML:
15 Aug 2009 by Abhishek Sur
MVC applications does so using URL rewriting. Hope that approach is good for you. Abhishek SurMy Latest ArticlesCreate CLR objects in SQL Server 2005C# Uncommon KeywordsRead/Write Excel using OleDBDon't forget to click "Good Answer" if you like to.
26 May 2009 by adatapost
Please refere this link http://www.highdots.com/css-tab-designer/[^] A DATAPOST COMPUTER CENTRE (K.V Prajapati)
6 Nov 2011 by Adel Refaat
A quick example of how to do grouping in XSLT version 1.0
9 Sep 2012 by Aditya Magotra
Hi,I want to call function from xslt by using ref parameter : - Thanks in Advance.
28 Jan 2014 by Afzal Shaikh
How can we select specific among multiple xml files for same xsl sheet at client side without using Javascript?Thanks in Advance
10 Nov 2010 by ahmad nabil
Hi i'm looking for a way to declare a variable as a link in XSLT,and then using it for an if else.Is there away to do this?Something like this.declare link = http://www.google.comif(Link == google) run something 1else (Link == yahoo) run something 2Is this possible,i...
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 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"> ...
11 Mar 2015 by ajitdstar4u
in my recent project i have to change one XSLT file.i did the change so should i install the complete WEB APP or is there any method to only change the XSLT file in server.
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...
4 May 2013 by al3abby
I'm developing an application in which I save data in a xml file.Breakfast-1-1falsefalse- One...
12 Sep 2001 by Alan Wen
This is a 3-tier application. A COM component returns SQL data in XML format, then using XSLT to transform to HTML at client side. By using XML, all the data can be sort, split into pages locally, that will give users a quick response!
20 Mar 2018 by Alex Pumpet
A simple program for comparing table data from two sources - SQL databases, Excel, CSV or XML-files
8 Feb 2010 by alex turner
I think that to do what you want you simply put the vbscript in tags in the area and put a onkeydown listener in the tag.
25 Mar 2009 by Ali Kheyrollahi
A Unit Testing framework for testing orchestration using instrumentation
20 Aug 2012 by Alpman
I'm trying to transform a SVG-file into another XML-file using XSLT and the C# class XslCompiledTransformThis is my SVG
27 Aug 2012 by Alpman
According to an answer I got at w3schools.com I had to include the svg namespace in the XSLT and add "svg" to exclude-result-prefixes:...
12 Aug 2009 by Aman Bhullar
Try URLRewriting RegardsAman Bhullarwww.arlivesupport.com[^]
18 May 2013 by Amir Jalilifard
How to make a real time commenting feature using SignalR.
15 Feb 2012 by Amod Kumar Jaiswal
this code create excel file with 10 sheets in every sheet have "TEST DATA" into cell.how to add hyper link on "TEST DATA" cell when i click on "TEST DATA" then sheet will change.int i = 1; if (source != null || source.Tables.Count == 0) { ...
2 Jan 2013 by Amr Rekaby, Mai Sobhy
This article provides a reusable component to calculate the delta difference between 2 XMLs structures, it is implemented by XSLT to be faster and platform independent.
10 Jun 2014 by Anamera
This XSLT will output an Excel worksheet containing a CSV type of record collection in a more usable XML format.
6 Mar 2002 by Anand Bolangadi
Number to word conversion program using XSLT
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.
22 Jul 2023 by Andre Oosthuizen
I have added a small template in your code that should convert the DateTimes based on the tutorial at - Formatting Dates and Times[^] -
28 May 2012 by Andreas Gieriet
Maybe this is what you aim for: ... ...CheersAndi
28 May 2012 by Andreas Gieriet
After you posted the data: this works for me.
31 May 2012 by Andreas Gieriet
The following XSLT creates an HTML table with the respective selected item marked.The item in question can be passed as id parameter from your xslt processor - default is 677.
4 Jun 2012 by Andreas Gieriet
Do you know the command.Try that one.CheersAndi
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...
10 Jul 2012 by Andreas Gieriet
Hello Rahulaaditya,I strongly suggest to consult any basic XSLT tutorial or book (since you did ask in the last few weeks some very basic questions on XML, HTML, CSS, XSLT).E.g. http://www.w3schools.com/xsl/[^] is a valuable source for getting answers on HTML, XML, XSLT, XPATH,...
20 Aug 2012 by Andreas Gieriet
Try:...
20 Jan 2013 by Andreas Gieriet
Maybe the following is a starting point (for one record):
10 Oct 2013 by Andreas Gieriet
How about:get/create a HTML version of your Template file firstcreate an XSLT file that produces that HTML template and add all the required xml data as ...create templates in XSLT to replace the preformatted data from above with nicely formatted dataThis assumes you have...
12 Jan 2014 by Andreas Gieriet
It's not simply done by replacing the schema. The xslt transfomer engine must provide the new functions. AFAIK, it is not yet/never(?) supported by MS tools.Some very old citation from Why You Won't See XSLT 2.0 or XPath 2.0 in the Next Version of the .NET Framework[^]Quote:There are...
4 Dec 2006 by Andrew Tweddle
A demonstration of using XSLT to create SQL error reports in a daily build process.
3 Apr 2014 by Andrius Leonavicius
Hi,Please take look at this document:User-Defined Extension Functions in XSLT[^]
27 Dec 2011 by AnilJayanti
>Hi ,I have been tasked for Creating Dynamic attributes to elements. Below is my code.getting the below result, but if any new attributes comes then i need to add that attribute into my xslt everytime. So, I want to make it dynamic xslt.Please help me on this.Input XML:
28 Mar 2012 by Anish_Ravindran
Passing Parameters to XSL
20 Dec 2014 by Anisuzzaman Sumon
Your solution is herehttp://stackoverflow.com/questions/27013911/get-value-of-form-text-field-with-without-submitting-the-form[^]
13 Mar 2011 by anithats
If you create the menus using an HtmlHelper Extension method like: you can use the HtmlHelper instance to look at the request context and determine what page you are on. Once you have this you can lookup (database, configuration, where ever your menu data is...)...
29 Nov 2013 by AnthonyMG
1.Get instance of your XML file 2.use xmlreader to get xml membersstring xml = " SachinVirat";XmlReader xr = XmlReader.Create(new StringReader(xml));var xmlMembers = from members in XElement.Load(xr).Elements() select...
13 Jun 2010 by Anton Burtsev
Article shows how to create a hierarchy management with create / rename / delele nodes, drag and drop, nodes deffered (lazy) load.
14 Jun 2010 by Anton Burtsev
This tutorial shows usage of Telerik controls in DotNetNuke. It lead you through a process of creation rating / comments solution for a complete DotNetNuke page or any other content identified by URL.
10 Dec 2014 by Anurag Prajesh
Hi,I can not consume wcf response.Error is:The Messaging engine failed to process a message submitted by adapter:WCF-BasicHttp SourceURL: . Details:The published message could not be routed because no subscribers were...
31 Jul 2012 by ap121976
I installed xslt 2.0 using Altova for vs 2010. Now when i try to include "xsl:result-document" for creating xml output file (i need more than one o/p file) it throws this error "xsl:result-document" is not yet implemented.'
8 Aug 2012 by ap121976
i have xml file with these element date (20120807) and time (165608)i need to concat these two and in the output xml the format should be 2012-08-07T16:56:08how do i acheive this in xslt.Thanks
17 Aug 2012 by ap121976
I have this XML below as my output. Used XSLT 2.0 to tranform xml.- - 2012-08-17T12:04:21-05:00 ShipmentUpdate GREENFIELD ...
6 Nov 2012 by ap121976
My input XML :Required Output...
29 Nov 2013 by Arpana Mallik
1. How do i fetch 1 by 1 letter from word in XSLT.EXample: i have xml like sachin Tendulkar Virat Kohili i want to display like ...
12 Aug 2013 by ArunRaj775
Here is a coding for newline based on space but i need wherever newline is necessary...xml: 1 Resume A summary of your objectives,educational qualification,experience,skills relevant to the field of work you are going to enter.Here you...
3 Jul 2013 by ArunRajendra
Transformation is the simplest and easiest way to do it.
12 Feb 2012 by Ashokraj29
i want to give the value for the blank line through javascript. let the value be xxxx.jpg.var a=xxxx.jpg.how to use the "var a" inside the src url so that i can get the image
23 Jul 2009 by ashwika49
I want to write a web application (application A) containing XML file .This web application will be invoked from an HTTP request (from another application - application B) .Application A should then send the XML file to Application B and return...
11 Oct 2013 by ASP.NET Community
  It is very good to know how we can add asp.net controls in XSLT.We know by using XSLT we can transform XML document to any format like
19 Mar 2010 by AspDotNetDev
Since you tagged this with ASP.NET, I thought I'd mention that default.aspx acts like index.html in that you can just point to the parent directory and the default.aspx page in that directory will automatically be used.
31 Aug 2010 by AspDotNetDev
Depends on what you mean by "create xsl:variable dynamically". You can change the node selection path based on what is entered into a textbox. For example, in this select:/dsQueryResponse/Rows/RowYou could dynamically choose part of that with the value from a textbox:/*[local-name() =...
4 Nov 2010 by AspDotNetDev
So you want to set the style attribute on a TD and you want to set it to something based on a numeric variable named $QuestionIndex? I'll assume this is the TD you want to apply that to:I'll assume that you want to set the font color to "Red"...
6 Dec 2010 by AspDotNetDev
There are many ways to insert a newline in the output of an XSLT, but this is probably the easiest.
18 May 2011 by AspDotNetDev
Thanks to this page, I found an even shorter alternative. First, you can add an entity in your DOCTYPE section:"> ]>You can then use this where you like in the document:&newline;That will get rendered...
27 Jun 2010 by Atwind
I had added this method in the transformer's XsltArgumentList.AddExtensionObject("urn:HtmlHelper", new HtmlHelper(viewContext, this)); I want to use HtmlHelper in the xslt template like this :what should i do ?:confused: :omg:
19 Mar 2010 by Austin Cherry
If you could give an example of what you would like output of transforming the input XML to look like, it would be helpful.
4 Oct 2011 by AVIDeveloper
An XML/XSLT based solution for auto-generating API and code.
10 Oct 2013 by Ayodeji Oluwatomiwo
After creating your XML file or document, simply right-click on the file by locating it and scroll down to "Open With", Then select the browser you want to use and it will be opened.Click the link below to view a picture process...
12 Feb 2011 by ayrilmaz
The subject of our new article is to develop a simple and a nice poll application.
20 Jun 2011 by bacy001
I want put some BUTTON on the web, and one BUTTON applies one xsl:template to the XML file.I want write these xsl:templates in one XSL file. Can anyone tell me how to do ?
14 Jun 2011 by Balaji_Reddy
2 3 4 5i have written foreach loop to get values and display it as report in html format.now i just wan to count number iterations of foreach loop. i...
19 May 2017 by Balram Awasthi
How to validate xsd 1.1 in Visual Studio 2010 Error : The...
2 Nov 2011 by Bangla Gopal Surya Prakash
Validating XML against defined XSL
16 Dec 2010 by Bansteatt84
So, here is what I am doing:I am transforming a list of links from an xml with an xsl. With that transformed data I am making it into a jquery accordion list.Lets start with the code:Xml (Example not actual): 1 ...
17 Jan 2011 by Bassam Abdul-Baki
A Google search on "table sort" or "table sort xml" brings up many HTML sort options some of which use an external XML source.
9 Dec 2023 by Bassam Abdul-Baki
Can't use xsl:sort as is. See https://stackoverflow.com/questions/42806139/using-preceding-sibling-with-with-xslsort[^]. Your best bet is to sort it to another XML node-set and then parse it. The following works somewhat. This adds an extra |...
10 Dec 2023 by Bassam Abdul-Baki
That's a different homework problem. You'll have to rewrite it to parse by the same values.
30 Aug 2012 by bbirajdar
Taking into account your 5 years of experience in IT, the first suggestion I want to give you is to improve your spellings. ( The correct spelling is 'career' and not 'Carrier'). Spelling mistakes create a bad impression in resumes and email communications. It shows your carelessness in your...
9 Oct 2006 by Bcoelho2000
Describes how to achieve globalized JavaScript and XSLT code.
9 Oct 2013 by Bernhard Hiller
For that purpose, you can useSystem.Diagnostics.Process.Start("name of exefile","parameters");I do not know the command line arguments of that program, but finding them should not be too complicated for you. After you got your task running when you start it manually from the command line,...
13 Mar 2008 by Bh@nu
In a cumbersome daily schedule, only tools like this can help us to be a little bit organized.
21 Feb 2013 by Bharath from India
I need to get an xml output where we have one lead no along with the resultset of aggregate functionCode snippet:select distinctISNULL(job.joblead,'')ROW_NUMBER() OVER(ORDER BY Desc) as Item_Number ,Count(*) Quantity,Desc DescFROM dbo.tableJob job left join jobprods on...
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 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.
30 May 2012 by BlaqProdukt
Hello guys I have an xslt file I want to extract data from.I am new to xslt but at the moment I can perform basic operations like looping through the nodes and creating element and attributes.My problem is that I want to select a particular value from a particular node(from a list of...