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.
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 be nested inside each other.
True
False
What does this instruction mean?
<xsl:apply-templates select="//div" />
This is a template that should contain instructions for how to render a <div> element.
This means "Find all the <div> elements in the document, and process them according to any applicable templates".
This means "Find all the <div> elements which are children of the current context node, and process them according to any applicable templates".
True or false: the select= attribute always contains XPath code.
True
False
Which of the following is NOT an XPath axis?
following::
preceding-sibling
child::
sister::
Look at the following snippet of XML. The BLUE element is the context node; the RED element is the target node. Which of the following XPath expressions will select the target node?
<choice> <abbr>UVic</abbr> <expan>The University of Victoria</expan> </choice>
parent::expan
following-sibling::expan
expan
child::choice/expan
Look at the following snippet of XML. The BLUE element is the context node; the RED element is the target node. Which of the following XPath expressions will select the target node?
<choice> <abbr>UVic</abbr> <expan>The University of Victoria</expan> </choice>
<seg> is a great place to be (if you're not a bunny). </seg>
parent::seg
following-sibling::seg
//seg[1]
parent::choice/following-sibling::seg[1]
Look at the following snippet of XML. The BLUE element is the context node; the RED element is the target node. Which of the following XPath expressions will select the target node?
<choice> <abbr>UVic</abbr> <expan>The University of Victoria</expan> </choice>
<seg> is a great place to be (if you're not a bunny). </seg>