_______ is an XML-related technology that is used to find elements, attributes, and other information in your XML document.
XPath
XPath can locate any type of information in an XML document with one line of code that returns a value when executed and is referred to as a(n) ________.
Expression
______ and ______ are both new XML-related technologies that extend or borrow from XPath.
XPointer  &   XQuery
An Xpath expression describes the location of an element or attribute in our XML document.
True
By starting at the _______ element, we can select any element in the XML document by carefully creating a chain of children elements.
Root
When creating our XPath statement, each element is separated by a _________.
forward slash  (i.e “/”)
In XPath, you reference an element by using it’s __________.
Name
At the end of your XPath expression, add the symbol _________ plus the name of the attribute you wish to select.
@;;;;;;;;;;; (the at “@” symbol)
If we want to select the supplier attribute of it’s parent element, chips, our expression would be__________.
[email protected]
When selecting elements, the method of using the complete path is referred to as the ________  path, and it is useful for selecting specific elements.
Absolute
When you are using the absolute path to locate an element, your expression must start with the _________  element of your XML document.
Root
In designating an element in an XML structure, if you wanted to refer to one of the sub elements, you will have to create a string of child elements from the root to the desired child element.
True
Xpath expressions can be created using _________ paths, so that instead of starting at the root element, you can simply reference the element from within the path structure and go from there.
Relative
To construct a relative path expression to select every count element, what would the correct expression look like?
count
If you wanted to select every cost element that had a book parent, you would use a relative expression like this:
book/cost
With XPath expressions, _______ are used to select the descendants of an element.
//       (double forward slashes)
To construct a relative XPath expression to select every count element that has a book ancestor, you would use the code:
book//count
In an XPath expression, if you put _______ where an element would normally go, you can select the parent element.
..             (2 periods)
In an XPath expression, the element to the right of the double period will have its parent selected.
False
In an XPath expression, the wildcard _________ can select every child element at once because it automatically matches everything possible.
*  
(the asterisk”*” symbol)
When working with XPath expressions, the ability to combine multiple expressions into one can be done by _________.
| (vertical bar, aka “pipe”)
There is NO LIMIT to the number of XPath statements that can be combined into one.
True
An XPath _________ is similiar to a programming if…then conditional statement that allows you to select elements based upon certain criteria.
predicate
An XPath predicate is contained within _________, and comes _______ the parent element of what will be tested.
[ ] , after
The format for writing an element-related predicate is:
parent[child some test here]
Besides testing the values of elements, you can also use predicates to check the values of attributes.
True
The format for writing an attribute-related predicate is:
element[@element’s attribute some test here]
Whenever you need to select an element and use a predicate on that same element, you will need to use a ______ to access that element’s value.
.
The acronym XSLT stands for __________.
Extensible Stylesheet Language Transformations
XSLT is used style and transform XML documents.
True
XSLT files must be save with _______ extension.
.xsl
XSLT does not physically change an XML document- just how it is displayed.
True
Unlike XML documents, XSLT documents do not need to include an XML declaration statement at the top of each XSLT document.
False
Every XSLT file must include the root element: xsl:stylesheet .
True
The XSLT root element has which two required attributes?
version and xmlns:xsl
The standard for of an XSLT element is:
xsl:element
Using the xsl:prefix before every XSL element is recommended by NOT required.
False
Xml:stylesheet is a special declaration for linking XML documents wit XSLT stylesheets, and it must be placed before your xml declaration to successfully link your XML file to your XSLT code.
False
The xml-stylesheet element has which two attributes?
type & href
The ________ attribute added to the ________ element uses your knowledge of XPath to find information in your XML document.
match & xsl:template
If we wanted to find book elements in an XML document, we would set the match attribute to a simple XPath expression: book, and the code would look like this:
<xsl:template match=”book”>
The ________ element lets you decide when and where your template elements are used.
xsl:apply-templates
The _________ attribute lets you chose specific child elements when working with the xsl:apply-templates element.
select
The XSLT processor begins at the ______ element when looking for template matches.
root
The _________ element uses the select attribute to chose elements and obtain their contents.
xsl:value-of
The xsl:value-of element can only be used to retrieve the value of the xml elements; attributes must be retrieved with the xsl:attrib-value element.
False
To select the id attribute’s value from the code: ;student id=”1″;Jack;/student;, you would use the following code:
;xsl:value-of select=”@id” /;
Xslt’s styles can be applied t XML elements selectively based on the element’s attribute value.
True
All major browsers have support ofr XML and XSLT.
True
Firefox supports XML, XSLT, and XPath from version _____.
3
Internet Explorer supports XML, XSLT, and XPath from version ____.
6
Google Chrome supports XML, XSLT, XPath from version _____.
1
Opera supports XML, XSLT, and XPath from version _____.
9
Apple Safari supports XML and XSLT from version _____.
3

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>