Professional Documents
Culture Documents
XML Quiz 2
XML Quiz 2
Concept
Reference
Task
DITA Map
Bookmap
4. To create XHTML or HTML from DITA you need which two of the following:
A. XML parser
B. XSTL processor
C. XSL-FO processor
Answer:
A and B
5. To create PDF from DITA you need which two of the following:
A. XML parser
B. XSTL processor
C. XSL-FO processor
Answer:
A and B
DocBook
DITA
8. Name the three DITA elements you would need to have an image with a caption
(be sure to use the actual DITA element names, case-sensitive)
Answer:
<fig> <image> <title>
<fig>
<title>Beautiful Picture </title>
<image href=”images/Beautiful Picture.jpg”</image>
</fig>
9. State one reason people attending a DTIA class should care about the command-line
Answer:
DITA OT is run at the command line and knowing how to use it is a valuable career
skill.
10. Name an open source tool that transforms DITA XML source content into
deliverables
like PDF, HTML, and help systems.
Answer:
DITA Open Toolkit (DITA OT)
11. Which of this following is a true statement (pick the best answer)?
A: OASIS
A. DITA map
B. Bookmap
C. Relationship table
D. All of the above
Answer:
B: Bookmap
15. The ________ is responsible for establishing the framework in which consistent,
reliable content is produced and delivered to customers and doing so in a way that
promotes the business goals of the organization.
A. DITA OT
B. Bookmap
C. Information Architect
D. Command line
Answer:
C: Information Architect
Answer:
1. Investigate, understand, articulate customer requirements.
2. Define a DITA environment optimized to reflect customer requirements.
3. Define business roles optimized to support customer requirements.
4. Model Metadata.
D: W3C
18. Create an HTML document that has an html root element, an h1 element, and a p
element. Place any text you like in the h1 and p elements.
Answer:
<html>
<h1>Hello World</h1>
<p>This is from the presentation.</p>
</html>
D: W3C
20. To associate CSS to an HTML file internally, you would use which of the following
elements?
A. style
B. link
C. script
Answer:
A: style
21. To associate JavaScript to an HTML file externally, you would use which of the
following elements?
A. style
B. link
C. script
Answer:
C: script
22. Which standards body curates JavaScript?
C: ECMA
23. Create code for an external JavaScript file called switch.js, with a function called
mySwitcher.
The function mySwitcher finds an HTML element with an Id of "ski-1" and replaces its
text with "skiing is expensive."
Answer:
switch.js
function mySwitcher(){
document.getElementById(“ski-1”).innerHTML=”Skiing is expensive.”;
}
24. Create code for an external CSS file called myski.css. The CSS file sets the
background-color of the HTML body element to lightblue, and it sets the color of the
HTML element h1 to blue, and sets the left margin to 50px.
Answer: myski.css
body {
background-color:lightblue;
}
h1 {
color:blue;
margin-left:50px;
}
Answer:
Optional – answer the following for any question you answered incorrectly on Quiz 1. For each
question you answered incorrectly on quiz 1, that you answer correctly here, a point will be added
to your quiz 1 grade. Note, everyone has a fresh chance to answer question 2 below. If you
answer correctly you will receive an extra point on quiz 1.
3. Create a DTD that defines the following elements (remember, XML is case-
sensitive):
24. Given the same DTD as in question 23, is the following valid XML? If not, state 1
reason?
saxon9.jar
book.xml
book.xsl
Given the following command-line: