In XML processing, which technology uses a stylesheet as a collection of…
2012
In XML processing, which technology uses a stylesheet as a collection of templates and template rules?
Answer: D. XSL — ConceptA transformation stylesheet is declarative: it associates patterns over source-tree nodes with templates that construct the output. In XSLT, a template…
- A.
XML
- B.
CSS
- C.
DHTML
- D.
XSL
Attempted by 47 students.
Show answer & explanation
Correct answer: D
Concept
A transformation stylesheet is declarative: it associates patterns over source-tree nodes with templates that construct the output.
In XSLT, a template rule contains a match pattern and a template body, so the stylesheet operates as a set of such rules.
Application
The stem asks for an XML-processing technology whose stylesheet is organized as templates and template rules. XSL provides this transformation model through XSLT.
Contrast
XML defines a markup syntax for structuring and labeling data; it is the source or result format rather than the transformation stylesheet language.
CSS applies selector-and-declaration rules to presentation, but it does not use XSLT-style template rules to transform an XML source tree.
DHTML is a collective term for HTML, CSS, scripting, and the DOM used to make web pages dynamic; it is not a single stylesheet specification.
XSL is the stylesheet family for transforming and formatting XML, with XSLT defining the template-rule transformation mechanism.
Cross-check and result
The defining pair of ideas in the stem—templates plus rules that match source nodes—corresponds to the XSLT model within XSL.
Therefore, the required technology is XSL.