Which of the following variable declarations is correct?
<xsl:variable name="$hisName" select="'Syd'"/>
<xsl:variable name="hisName" select="Syd"/>
<xsl:variable name="hisName" select="'Syd'"/>
<xsl:variable name="$hisName" select="Syd"/>
You have declared a variable like this:
<xsl:variable name="hisName" select="'Syd'"/>
Which is the correct way of using it?
<xsl:value-of select="hisName"/>
<xsl:value-of select="'hisName'"/>
<xsl:value-of select="$hisName"/>
<xsl:value-of select="'$hisName'"/>
Which of the following elements can NOT be used inside <xsl:choose>?
<xsl:if>
<xsl:when>
<xsl:otherwise>
Which of the following does NOT have a test= attribute?
<xsl:if>
<xsl:when>
<xsl:otherwise>
In a TEI document, what value would the following test= attribute return?
<xsl:if test="//em">...</xsl:if>
true
true()
false
false()
Which XPath function gives you the back the largest number of a sequence that you pass to it?
max()
min()
largest()
highest()
Which XPath function would you use if you wanted to turn this:
spelting mistoke
into this:
spelling mistake
normalize-space()
string-join()
replace()
distinct-values()
Imagine you have a list of names, and many of them occur several times in the list. What function would you use to get a reduced list, with no duplicates in it?
remove-duplicates()
string-join()
starts-with()
distinct-values()
If you wanted to take the list of names:
Analee Ann Anna Anne Edna Ena
and extract only the names
Ann Anna Anne
from it, which XPath function could you use?
starts-with()
ends-with()
similar()
is-name()
Which of the following is NOT an XPath function?
string-length()
string-join()
string-concat()
string()
Which of the following is NOT a syntactically valid XPath function?