Listing 13.1[em]helptopic.xml
Double-click">
]>
How to use a shared network printer?
In Network Neighborhood,
locate and double-click the computer where the printer
you want to use is located.
To see which computers
have shared printers attached, click the menu,
click , and look for printer names or descriptions
in the Comment column of the Network Neighborhood window.
&doubleclick; the printer icon in the window that appears.
To set up the printer, follow the instructions
on the screen.
After you have set up a network printer, you can use it as if it were
attached to your computer. For related topics, look up "printing"
in the Help Index.
Listing 13.2[em]helptopic.xml with Processing Instruction Added
Double-click">
]>
…
Listing 13.3[em]helptopic.css
helptopic { display: block;
margin-top:3cm;
margin-left:2cm;
margin-right:2cm;
margin-bottom:6cm;
font-family:Verdana, Arial;
font-size:11pt;
padding:20pt; }
title {display: block;
font-size:20pt;
color:blue;
font-weight:bold;
text-align:center;
margin-bottom:30pt;
text-decoration:underline;}
procedure {display:block;
margin-bottom:30pt}
step {display:block;
margin-bottom:18pt}
action {display:block;
font-weight:bold;}
tip {display:block;
font-size:10pt;
margin-left:+1cm;
margin-top:12pt;
color:blue;}
icon {display:inline;
font-size:12pt;}
todo {display:inline;
color:red;}
menu {display:inline;
font-style:italic;}
xref {display:inline;
text-decoration:underline;}
Listing 13.4[em]books2.xml
Convert to Canadian dollars:
Sam's Teach Yourself C++ in 21 Days, Second Edition
Jesse Liberty
This book teaches you the basics of
object-oriented programming with C++ and is completely revised to ANSI
standards. It can be used with any C++ compiler.
0-672-31070-8
700
Beginning - Intermediate
29.99
Maximum Java 1.1
Glenn Vanderburg et al.
Written by JAVA experts, this book explores
the JAVA 1.1 language, tools, and core JAVA API without reviewing fundamentals
or basic techniques.
1-57521-290-0
900
Expert
49.99
JavaScript Unleashed, Second Edition
Richard Wagner et al.
This book helps you thoroughly understand and
apply JavaScript.
1-57521-306-0
1000
Casual - Experienced
49.99
Sam's Teach Yourself Visual C++ 5 in 21 Days, Fourth Edition
Nathan and Ori Gurewich
This book merges the power of the best-selling
"Teach Yourself" series with the knowledge of Nathan and Ori Gurewich, renowned
experts in code, creating the most efficient way to learn Visual C++.
0-672-31014-7
832
New - Casual
35.00
Listing 13.5[em]convert.js
function convert() {
var priceElements = document.getElementsByTagName("price");
//returns a NodeList of all elements with the tag price
var i;
for (i=0;i < priceElements.length;i++) {
// looping over all those price elements
var USAprice =
parseFloat(priceElements.item(i).firstChild.nodeValue);
//the firstChild property returns the Text node
//of this Text node we take the nodeValue, being the text itself
//we convert this text to a number (floating)
priceElements.item(i).setAttribute("unit","Canadian dollar");
//we set the attribute "unit" to value "Canadian dollar"
var convertedprice = USAprice * 1.4;
//we convert the price to Canadian dollar
var newprice = document.createTextNode(convertedprice);
//we create a new Text node containing the new price
priceElements.item(i).replaceChild(newprice,priceElements.item(i).firstChild);
//we replace the old Text node with the new one
}
}
Listing 13.6[em]footer.htm
Listing 13.7[em]A Viewport stylesheet Definition
Listing 13.9[em]Defining Relationships Between a DTD and Viewport Style Sheets and Navigators
PUBLIC "-//Pro Text//DTD online help//EN"
STYLESPEC "standard" "standard.ssh"
STYLESPEC "large" "large.ssh"
NAVIGATOR "topics" "topics.nav"
NAVIGATOR "figures" "figures.nav"
Listing 13.10[em]musicians.xml
]>
Joey Baron
drums
1
Bill Frisell
guitar
3
Don Byron
clarinet
2
Dave Douglas
trumpet
1
Listing 13.11[em]musicians.xml with Processing Instructions
]>
…
Listing 13.12[em]An Example Style Sheet
]>
Listing 13.13[em]An Example Navigator
Listing 13.14[em]books.xml
Sam's Teach Yourself C++ in 21 Days, Second Edition
Jesse Liberty
This book teaches you the basics of
object-oriented programming with C++ and is completely revised
to ANSI standards. It can be used with any C++ compiler.
0-672-31070-8
700
Beginning - Intermediate
29.99
Maximum Java 1.1
Glenn Vanderburg et al.
Written by JAVA experts, this book
explores the JAVA 1.1 language, tools, and core JAVA API without
reviewing fundamentals or basic techniques.
1-57521-290-0
900
Expert
49.99
JavaScript Unleashed, Second Edition
Richard Wagner et al.
This book helps you thoroughly understand and apply JavaScript.
1-57521-306-0
1000
Casual - Experienced
49.99
Sam's Teach Yourself Visual C++ 5 in 21 Days, Fourth Edition
Nathan and Ori Gurewich
This book merges the power of the best-selling
"Teach Yourself" series with the knowledge of Nathan and Ori Gurewich,
renowned experts in code, creating the most efficient way to learn Visual C++.
0-672-31014-7
832
New - Casual
35.00