Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
XSLT (Extensible Stylesheet Language Transformations) is a functional, template-driven language for transforming XML trees into other trees (XML, HTML, text). This question checks whether you understand that XSLT is declarative, not procedural: you write template rules that match patterns, not step-by-step procedures.
Given Data / Assumptions:
Concept / Approach:
In XSLT you declare how to transform nodes by defining templates that match nodes and produce result fragments. The processor determines the order of application based on matches and priorities. Although you can simulate procedural flow, the core model remains declarative. Therefore, calling XSLT “specifying a procedure” is inaccurate; you specify transformation rules, not imperative procedures.
Step-by-Step Solution:
Verification / Alternative check:
Consider a stylesheet with multiple templates and priorities: the engine chooses matching templates dynamically. This behavior is inconsistent with strictly procedural programming where control flow is explicitly sequenced by the programmer.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming that presence of loops or conditionals makes a language procedural; overlooking template matching and rule-based execution as the defining characteristic.
Final Answer:
Incorrect
Discussion & Comments