What is server-side XSLT?
A
XSLT that runs in the browser B
XSLT used in CSS files C
XSLT transformations executed on the server before sending the output to the client D
XSLT used for compiling XML to JavaScript
Analysis & Theory
Server-side XSLT means the transformation occurs on the server, and the result (e.g., HTML) is sent to the client.
Which Python library is commonly used for server-side XSLT processing?
A
xml.etree.ElementTree B
lxml C
xml.sax D
xml.dom
Analysis & Theory
`lxml` is a powerful Python library that supports XSLT transformations using the `etree.XSLT()` API.
Which Java class is used for XSLT transformations on the server?
A
TransformerFactory B
XmlParser C
SAXBuilder D
TemplateEngine
Analysis & Theory
`TransformerFactory` from `javax.xml.transform` is used to apply XSLT transformations in Java.
In PHP, which class supports XSLT transformations?
A
DOMParser B
XSLTProcessor C
XmlWriter D
XmlConverter
Analysis & Theory
`XSLTProcessor` is a PHP class that allows server-side XSLT transformations by loading and applying stylesheets.
Why is server-side XSLT often preferred over client-side?
A
It's faster on older devices B
Ensures consistent output across all browsers C
It supports CSS integration D
It prevents XML from being parsed
Analysis & Theory
Server-side transformation ensures that clients receive pre-rendered content, avoiding browser inconsistencies.
What output formats can XSLT generate server-side?
A
Only HTML B
Only XML C
HTML, plain text, XML, or other structured formats D
Only JSON
Analysis & Theory
XSLT can generate various formats including HTML, XML, and plain text depending on the use case and `<xsl:output>`.
Which .NET class is used to perform XSLT transformations?
A
XmlParser B
XslCompiledTransform C
XslConverter D
XsltHandler
Analysis & Theory
`XslCompiledTransform` is the standard class for XSLT transformations in .NET applications.