If your XSLT stylesheet is version 2.0, which transformation engine should you use?
- Saxon 2 or above
- Saxon 6 or above
- Saxon 9 or above
- Any version of Saxon
What does the following attribute value in the <xsl:stylesheet> element mean?
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
- Elements in the output are expected to be TEI elements.
- Elements in the output are expected to be XHTML elements.
- Elements in the input are expected to be XHTML elements.
- Elements in the input XML are expected to be TEI elements.
What does the following attribute value in the <xsl:stylesheet> element mean?
xmlns="http://www.w3.org/1999/xhtml"
- Elements in the input XML are expected to be TEI elements.
- Elements in the output are expected to be TEI elements.
- Elements in the input are expected to be XHTML elements.
- Elements in the output are expected to be XHTML elements.
True or false:
<xsl:template> elements can never be empty.
- True
- False
What does this instruction mean?
<xsl:template match="div" />
- When you find a div element, process its children.
- When you find a <div> element, ignore it.
- Find all the <div> elements in the document, and process them according to any applicable templates.
True or false: You must provide a template for every element in your document.
- True
- False
If you're processing a TEI file, what does the following template match?
<xsl:template match="/">
- Any element.
- The <TEI> element.
- The document root.
What does this template match?
<xsl:template match="div[head]">
- Any <div> elements which have a child <head> element.
- All <head> elements which are inside a <div>.
- All <div> elements which are inside a <head>.
What does this template match?
<xsl:template match="name[@type='vessel'][parent::p]">
- All <name> elements which are children of a <p> element.
- All <name> elements with a type attribute whose value is "vessel" and whose parent is a <p> element.
- All <name> elements which are parents of a <p> element.
Which of these output types CANNOT be produced with XSLT?
- Text
- Microsoft docx file
- XML
- Tab-delimited data (spreadsheet)
- HTML
- XHTML
- CSS
Complete the following sentence:
The no-namespace namespace is ______________.
- a namespace
- an abomination
- an error
- a special namespace managed by the W3C