Is XSLT worth the investment and are there any real alternatives?

I understand that there were a few more questions on this subject, and the general consensus was to use your language for managing XML. However, this decision does not entirely correspond to my circumstances.

Firstly, the scope of the project: We want to develop platform-independent e-learning, currently a bunch of HTML pages, but as it grows and develops, it becomes difficult for them to maintain. We already have about 30 modules with 10-30 HTML pages each, and this is constantly growing.

Idea: Have an XML file + Schema preview module, then create some XSLT files that process XML in eLearning modules. XML to HTML via XSLT.

Why: We would like flexibilty to easily reformat the content. I understand that CSS is a viable alternative here, especially to visually alter the appearance, but we may need a little more energy than that and get to the rebuilding of the pages. If we decide to change the page layout or functionality anyway, I assume that changing the "shared" XSLT files will be easier than updating the HTML files.

Depending on some of the β€œparameters”, we can display completely different page layouts / structures, above and above what CSS can do. Can XSLT accept QueryString parameters? Not sure.

Now all this should be platform independent and be able to run "autonomously", i.e. without a server that controls HTML, so server technology is out of the question (C #, PHP)

Negative values ​​that I have read so far for XSLT:

  • Overhead? It’s not entirely clear why ... is it the computational power needed to convert to HTML?
  • Hard to know
  • Best alternatives

Now I would like to know for sure:

  • Are there any viable alternatives for this β€œstand-alone”?
  • I think about it right.
  • Do you have any tips or alternatives.

EDIT: With or without XSL, CSS and jQuery will be a very important part of the solution we are developing. Tidy up (sloppy engraver!)

+3
4

XSLT . XSLT , .

  • : , . , , . , , , .
  • . XSLT , : , , XSLT , , ! , , , . , , , . . , "".
  • . , , . , .NET, XSLT XElements .., XML VB.NET . XSLT - , .

CSS , ? XSLT , 30 , CSS ( ).

. / html-, , : , , , . , XSLT, . XSLT XML, .

+8

XSLT - HTML XML . XSLT, , XML- , , XSLT HTML-, , , .

( , XML- . HTML XML-, XSLT, , .)

, CSS.

+4

.

, CSS CSS, SASS, Less ..

XHTML - CSS, XML ..

JQuery

XSLT is quite heavy and will not scale well, while XHTML + XSS + JQuery is very well understood and there are many tools.

+2
source

If you already know that C # or VB.NET are considering using LINQ to XML, the code will be longer, but there may be less write and support problems for any XSLT expert.

It all comes down to how many XML transformations you need, just 1 or 2, then I would not have spent time learning XSLT.

0
source

Source: https://habr.com/ru/post/1746448/


All Articles