Shared Flashcard Set

Details

XML
Exam
55
Computer Networking
Undergraduate 1
12/09/2012

Additional Computer Networking Flashcards

 


 

Cards

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