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
Which of these output types CANNOT be produced with XSLT?
- Text
- Microsoft docx file
- XML
- Tab-delimited data (spreadsheet)
- HTML
- XHTML
- CSS
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
True or false: You must provide a template for every element in your document.
- 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.
Imagine you have this in your input document:
<emph>He was a murderer!</emph>
but there is no template which matches the <emph> element. What will you see in the output?
- Nothing at all
- An <emph> element
- He was a murderer!
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 children of a <div>.
- All <div> elements which are inside a <head>.
What does this template match?
<xsl:template match="p | lg">
- Any <p> element which is the parent of an <lg> element
- Any <lg> element which is the child of a <p> element
- <lg> elements but not <p> elements
- Both <p> and <lg> elements
True or false: Syd will always tell you the truth, the whole truth, and nothing but the truth.
- True
- False