Questions tagged [xslt]
The xslt tag has no summary.
22 questions
0
votes
1
answer
143
views
Turning complex XML (or content tree) into HTML - How to do it (in Java)?
I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top.
But now I want to create a static HTML site that has basically the same content (and ...
1
vote
2
answers
229
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 ...
26
votes
4
answers
12k
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
1
answer
581
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
1
answer
375
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. Underneath ...
2
votes
0
answers
177
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
1
answer
5k
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-...
17
votes
5
answers
19k
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 ...
11
votes
3
answers
6k
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 application
...
1
vote
1
answer
2k
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....
17
votes
5
answers
23k
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
1
answer
1k
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
2
answers
576
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
4
answers
1k
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 ...
5
votes
1
answer
587
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
2
answers
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
3
answers
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 ...
6
votes
1
answer
1k
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
5
answers
7k
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
3
answers
3k
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
6
answers
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 ...
32
votes
9
answers
27k
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 ...