Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xslt]

The tag has no usage guidance.

0
votes
2answers
34 views

I generated XHTML with XSLT, what are my options with HTML 5?

I have some older xsl transformations that I will modify soon. They generated XHTML code from a home-grown XML format. Since I am touching these XSL files anyway, I am wondering how I will deal with ...
11
votes
4answers
1k views

Why is XSLT so rarely used on the web? [closed]

XSLT is a mature, widely accepted standard. It can be used in browsers (even in old IE) and on the server side (nginx has an XSLT module, which can be used from programming languages, of course). Its ...
-2
votes
1answer
170 views

Using xslt to convert xml to html

Going through an ASP.NET project that isn't mine and I noticed it queries the DB, converts the data to xml, then sends that to the view. In the view it calls a class that uses xslt to convert the xml ...
-1
votes
1answer
205 views

Shorthand notation for XSLT?

There are a few languages, that developed shorthand notations, notably e.g. ECMAScript can be generated from coffeescript: CoffeeScript is a little language that compiles into JavaScript. ...
2
votes
0answers
152 views

Is a long XSLT file a code smell? [closed]

Is a long XSLT file a code smell? In imperative programming languages it's generally acknowledged that very large classes and/or sub-routines are an indication of possible problems, e.g. a class ...
3
votes
1answer
3k views

Transforming XML to JSON in C++ [closed]

Working with XML in C++ seems a bit of a pain and I'm looking at a way to output JSON. I've stumbled on two different approaches: A) XSLT transformations: http://controlfreak.net/xml-to-json-in-...
13
votes
5answers
12k views

XSLT equivalent for JSON

I was interested in finding (or if necessary developing) an XSLT equivalent for JSON. As I have not found any, I was considering the possible query language to use for matching JSON paths so as to ...
12
votes
3answers
4k views

What is a good design pattern for generating an Excel (xlsx) file in code?

See my Update at the bottom for more. I occasionally have projects where I have to output some data as an Excel file (xlsx format). The process is usually: User clicks some buttons in my ...
1
vote
1answer
1k views

Create ASP.NET input forms from XSD?

I have several types of XML document. The format of (i.e. the elements in) each document type is defined in an XSD. Is there a convenient way to create HTML elements (or ASP.NET controls) on an ASP....
13
votes
5answers
14k views

XSLT and possible alternatives [closed]

I had a look at XSLT for transforming one XML file into another one (HTML, etc.). Now while I see that there are benefits to XSLT (being a standardized and used tool) I am reluctant for a couple of ...
6
votes
1answer
963 views

Mapping variable inputs to user interface elements

Background Developing a system for creating eBooks. The data is highly normalized. The eBook designs are packaged as "themes." The themes can be configured with options for: fonts, colours, some ...
2
votes
2answers
524 views

Code execution time out occasionally

I am working on an e-commerce website. There is a case where I need to fetch the whole data in database through a third-party API and send it to an indexing engine. This third-party API has many ...
1
vote
4answers
945 views

Is XML, HTML/CSS, XSL analogous to Model, View, Controller?

For some time in personal projects I have been using XSL to convert my raw XML data into human-friendly HTML/CSS (in simple projects, I have no JavaScript, so let's leave that out of the equation for ...
4
votes
1answer
449 views

Alternative to XML / XSLT for artifact generation?

The scenario: A system needs to produce a variety of artifacts to present to end-users during the normal course of business. Examples of these artifacts would be permits, invoices, or receipts -- ...
2
votes
2answers
2k views

Using XSLT for messaging instead of marshalling/unmarshalling Java message objects

So far I have been using either handmade or generated (e.g. JAXB) Java objects as 'carriers' for messages in message processing software such as protocol converters. This often leads to tedious ...
6
votes
3answers
1k views

Is there an effective way to test XSL transforms/BizTalk maps?

Creating repeatable tests for BizTalk maps is frustrating. I can't find a way to handle testing them like I'd do unit testing, because I can't find ways to break them into logical chunks. They tend to ...
5
votes
1answer
956 views

Are XML Schemas bad for constantly evolving file formats?

I'm struggling with a client-server project where I have Java apps out on the Internet that store data to a backend server. The format of this data is well-defined, but the project is constantly ...
0
votes
5answers
6k views

Is using xml + xsl to create a weekly html email a good or bad idea?

The guy who is in charge of our html emails is leaving and I have been asked to take over. We are an online retailer and send out an email once a week. An email will consist of a main image, a bit of ...
4
votes
3answers
2k views

Why do XSLT editors insert tab or space characters into XSLT to format it? [closed]

All XSLT editors I've tried till now add tab or space characters to the XSLT to indent it for formatting. This is done even in places within the XSLT where these characters are significant to the XSLT ...
9
votes
6answers
9k views

Is Razor or XSLT better for my project? [closed]

I'm in the early stages in the design of a system that will essentially be split into two parts. One part is a service and the other is an interface with the service providing data through something ...
27
votes
10answers
19k views

Are there any good reasons to use, learn, or recommend XSLT? [closed]

I am a developer for the last 8 years. We used XSLT primarily to transform XML into HTML. We also used it for XML to XML transformation. But we have replacement for everything now. HTML can be ...