+ 2

Is XSL(T) a declarative or imperative language and why?

XML Stylesheet Language (Transformation)

18th Dec 2019, 10:25 AM
Sonic
Sonic - avatar
9 Respuestas
+ 3
I have no idea (You wanted an answer😂😂😂)
9th Jan 2020, 2:57 AM
Jacob Heath
Jacob Heath - avatar
+ 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)
9th Jan 2020, 6:12 AM
Arsenic
Arsenic - avatar
+ 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🙂🙃
9th Jan 2020, 6:14 AM
Arsenic
Arsenic - avatar
+ 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.
9th Jan 2020, 11:23 AM
Sonic
Sonic - avatar
+ 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 😂.
9th Jan 2020, 11:30 AM
Sonic
Sonic - avatar
+ 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.
9th Jan 2020, 11:38 AM
Sonic
Sonic - avatar
+ 2
Wow, no answers yet.
9th Jan 2020, 2:38 AM
Sonic
Sonic - avatar
+ 2
I guess the popularity of xslt has gone down lately.
23rd Jan 2020, 8:51 PM
Sonic
Sonic - avatar
+ 2
I just like it for its ability to convert from one form of markup to another.
6th Feb 2020, 12:12 AM
Sonic
Sonic - avatar