+ 2
Is XSL(T) a declarative or imperative language and why?
XML Stylesheet Language (Transformation)
9 odpowiedzi
+ 3
I have no idea
(You wanted an answer😂😂😂)
+ 3
there are some derived technologies that can be named "programming language", more or less. Most famous example here is XSLT: XML transformation that uses special set of rules (XSL stylesheets) to process XML data to another format. So, XSL/XSLT can be named declarative programming language (same time, it is flexible enough and can be used procedural way too)
+ 3
And Sonic there was no answer from my side because I was having no idea about XSL(T) so it took me some time to know more about it
so thanks for sharing this question as I got something new to learn from it🙂🙃
+ 3
Arsenic I agree. There are some questions like this that can be Googled. However, individual Googling does not benefit anyone else and there is no guarantee that a search engines will always give you the answer.
+ 3
Arsenic yes I guess some of the if and case/when statements of xslt are procedural. There are no formal loops but recursion is available. I can understand how html is declarative and not procedural. But I don't understand why xslt is not imperative. Maybe not being Turing complete has something to do with it. Maybe it is declarative with procedural elements. Anyway it's all very confusing to me 😂.
+ 3
Actually I take back my comment about xslt not being Turing complete because according to the following link it is!
https://en.m.wikipedia.org/wiki/XSLT
The fact that a declarative language can be Turing complete is another one that baffles me.
+ 2
Wow, no answers yet.
+ 2
I guess the popularity of xslt has gone down lately.
+ 2
I just like it for its ability to convert from one form of markup to another.