Annotation of books/www/corrections.html, revision 1.110

1.75      eric        1: <html><style>
1.91      david       2:   .broken { color: red; }
                      3:   .fixed { color: blue; }
1.52      petejc      4: </style>
                      5: 
1.75      eric        6: <body><p><b>Corrections</b>
1.1       david       7: 
1.21      david       8: <p>This page contains a list of corrections to be made in the next printing of
1.19      david       9: the book.  If you have suggestions for changes or find errors in the text,
1.22      david      10: feel free open a <a href="bugs.html">bug</a> with a report of the problem, post a message in the User Notes 
                     11: section on the chapter pages, or send a message to the <a
1.19      david      12: href="mailto:reviewers@mozdev.org">reviewers@mozdev.org</a> mailing list.
1.1       david      13: 
1.56      david      14: <p><b>Note:</b> All errors in the text and examples are shown in <b class="broken">red</b> and all corrections are shown in <b
1.90      petejc     15: class="fixed">blue</b>.
1.20      david      16: 
1.75      eric       17: <a name="preface"></a>
1.20      david      18: <p><b>Preface</b>
                     19: 
1.1       david      20: <ul>
1.18      david      21: 
1.80      david      22: <li>On page ix: '<b class="broken">other browsers such as Galeon and Chimera</b>' has been changed to '<b class="fixed">other browsers 
                     23: such as Galeon and Camino</b>'<br><br>
                     24: 
1.51      petejc     25: <li>On page xiv: '<b class="broken">http://www.oreilly.com/mozilla/</b>' has been changed
                     26: to '<b class="fixed">http://www.oreilly.com/catalog/mozilla/</b>'<br><br>
1.18      david      27: 
1.84      david      28: <li>On page xvii: '<b class="broken">David McNamara, and Mark Hammond</b>' has been changed to '<b class="fixed">David 
                     29: McNamara, Mark Hammond, Gary Frederick, and Andreas Halter</b>'<br><br>
                     30: 
1.80      david      31: <li>On page xvii: '<b class="broken">David Hyatt and Mike Pinkerton for the Chimera browser</b>' has been changed to '<b
                     32: class="fixed">David Hyatt and Mike Pinkerton for the Camino browser</b>'<br><br>
1.84      david      33: 
                     34: <li>On page xvii: '<b class="broken">including Kim Steckler, Rachel Oeschger, and Priscilla, Dylan, and Devon Collins</b>' has been
                     35: changed to '<b class="fixed">including Kim Steckler, Rachel Oeschger, Marjana Molan, Lia Molan King, and Priscilla, Dylan, and Devon
                     36: Collins</b>'<br><br>
1.80      david      37: 
1.20      david      38: </ul>
                     39: 
                     40: 
1.75      eric       41: <a name="ch1"></a>
1.20      david      42: <p><b>Chapter 1</b>
                     43: 
                     44: <ul>
                     45: 
1.80      david      46: <li>On page 2: In sidebar '<b class="broken">like Chimera (an ultra-fast browser that works only on Mac OS X)</b>' has been changed to 
                     47: '<b class="fixed">like Camino (an ultra-fast browser that works only on Mac OS X)</b>'<br><br>
                     48: 
1.74      david      49: <li>On page 7: In sidebar '<b class="broken">Another project, call m/b (short for mozilla/browser), addresses shortcomings</b>' has
                     50: been changed to '<b class="fixed">The Phoenix project (http://www.mozilla.org/projects/phoenix/) also addresses
                     51: shortcomings</b>'<br><br>
                     52: 
1.80      david      53: <li>On page 7: In sidebar '<b class="broken">Some examples include Chimera (http://chimera.mozdev.org)</b>' has been changed to '<b 
                     54: class="fixed">Some examples include Camino (http://www.mozilla.org/projects/camino/)</b>'<br><br>
1.74      david      55: 
1.53      david      56: <li>On page 7: '<b class="broken">applications web built using XPFE</b>' has been
                     57: changed to '<b class="fixed">applications built using XPFE</b>'<br><br>
1.18      david      58: 
1.20      david      59: </ul>
                     60: 
                     61: 
1.75      eric       62: <a name="ch2"></a>
1.20      david      63: <p><b>Chapter 2</b>
                     64: 
                     65: <ul>
                     66: 
1.57      david      67: <li>On page 10: Added a new sentence to the end of the 2nd paragraph of the xFly examples sidebar: '<b class="fixed">An installable version
1.58      david      68: of the complete xFly application can be found at http://xfly.mozdev.org.</b>'<br><br>
1.57      david      69: 
1.53      david      70: <li>On page 12: '<b class="broken">&lt;window
1.18      david      71: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"  
1.53      david      72: /&gt;</b>' has been changed to '<b class="fixed">&lt;window
                     73: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>'<br><br>
1.18      david      74: 
1.64      david      75: <li>On page 14: In first code sample from Windows features section, '<b
                     76: class="broken">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>' has been changed to '<b
                     77: class="fixed">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"</b>'<br><br>
1.18      david      78: 
1.53      david      79: <li>On page 17: '<b class="broken">selecting File > Open File > from</b>' has been
                     80: changed to '<b class="fixed">selecting File > Open File from</b>'<br><br>
1.18      david      81: 
1.53      david      82: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
                     83: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
1.19      david      84: 
1.86      david      85: <li>On page 25: '<b class="broken">Under that directory, create the three new directories, <i>content</i>, <i>locale</i>, and <i>skin</i>, as
1.88      david      86: shown in Figure 2-5.</b>' has been changed to '<b class="fixed">Under that directory, create the three new directories, <i>content</i>,
1.86      david      87: <i>locale</i>, and <i>skin</i>, as shown in Figure 2-5. The <i>locale</i> directory will have the default 'en-US' language pack
1.87      david      88: structure.</b>'<br><br>
1.86      david      89: 
1.100     brian      90: <li>On page 25: There is 1 error in Figure 2-5 ...<br><br>
                     91: 
                     92: 1)  The <b class="fixed">locale folder should have an en-US subfolder</b>.<br><br>
                     93: 
                     94: Here is a correct image <b>(Click for bigger version)</b>:<br><br>
                     95: 
1.101     brian      96: <a href="http://books.mozdev.org/screenshots/moz_0205.png"><img src="http://books.mozdev.org/screenshots/moz_0205_small.jpg" alt="New Figure 2-5"></a>
1.100     brian      97: 
1.86      david      98: <li>On page 31: In Example 2-14 '<b class="broken">locale/</b>' has been changed to '<b class="fixed">locale/en-US/</b>'<br><br>
                     99: 
                    100: <li>On page 32: In Example 2-15 '<b class="broken">locale,install,url,resource:/chrome/xfly/locale/</b>' has been changed to '<b
                    101: class="fixed">locale,install,url,resource:/chrome/xfly/locale/en-US/</b>'<br><br>
                    102: 
1.20      david     103: </ul>
                    104: 
                    105: 
1.75      eric      106: <a name="ch3"></a>
1.20      david     107: <p><b>Chapter 3</b>
                    108: 
                    109: <ul>
                    110: 
1.67      david     111: <li>On page 34: '<b class="broken">We've packed a lot information in this chapter and it be a useful reference</b>' has been changed
                    112: to '<b class="fixed">We've packed a lot of information in this chapter and it will be a useful reference</b>'<br><br>
1.66      david     113: 
1.71      david     114: <li>On page 35: '<b class="broken">secondLevelNodes[I] = docEl.childNodes[i];</b>' has been changed to '<b 
                    115: class="fixed">secondLevelNodes[I] = docEl.childNodes[I];</b>'<br><br>
                    116: 
1.95      david     117: <li>On page 38: In Example 3-3 the namespace declarations have been changed to (note the addition of quotes and the removal of italics)
                    118: 
                    119: <xmp class="fixed">
                    120:     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
                    121:     xmlns:nc="http://home.netscape.com/NC-rdf#">
                    122: </xmp>
                    123: 
1.96      david     124: <li>On page 38: In Example 3-3 '<b class="broken">&lt;image src="page1.png"&gt;</b>' has been changed to '<b class="fixed">&lt;image 
                    125: src="page1.png"/&gt;</b>'<br><br>
                    126: 
1.54      david     127: <li>On page 40: '<b class="broken">&lt;toolbarbutton id="printBtn" label="Open"
                    128: oncommand="doPrint( );" /&gt</b>' has been changed to '<b class="fixed">&lt;toolbarbutton
                    129: id="printBtn" label="Print" oncommand="doPrint( );" &gt</b>'<br><br>
1.18      david     130: 
1.65      david     131: <li>On page 51: '<b class="broken">&lt;decription&gt;The mozdev.org site [...] your own development project&lt;/decription&gt;</b>' has been 
                    132: changed to '<b class="fixed">&lt;description&gt;The mozdev.org site [...] your own development project&lt;/description&gt;</b>'<br><br>
1.71      david     133: 
1.99      brian     134: <li>On page 54: '<b class="broken">Clicking on the box sets the <tt>clicked</tt> attribute</b>' has been 
                    135: changed to '<b class="fixed">Clicking on the box sets the <tt>checked</tt> attribute</b>'<br><br>
                    136: 
1.71      david     137: <li>On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values)
                    138: 
                    139: <xmp class="fixed">
                    140: <?xml version="1.0"?>
                    141: <window id="hello-goodbye"
                    142:     title="Hello Goodbye"
                    143:     xmlns:html="http://www.w3.org/1999/xhtml"
                    144:     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
                    145:     style="min-width:100px;min-height:100px;background-color:white;">
                    146:   <broadcasterset id="broadcasterset">
                    147:     <broadcaster id="cmd_hello" oncommand="alert('Hello There!');"/>
                    148:   </broadcasterset>
                    149:   <keyset id="keyset">
                    150:     <key id="key_h" key="H" observes="cmd_hello" modifiers="accel,shift" />
                    151:     <key id="key_g" key="G" command="cmd_goodbye" modifiers="accel,shift" />
                    152:   </keyset>
                    153:   <commandset id="commandset">
                    154:     <command id="cmd_goodbye" oncommand="alert('Goodbye!');" />
                    155:   </commandset>
                    156:   <spacer flex="1"/>
                    157:   <label value="hello/goodbye"/>
                    158:   <textbox value="type ctl+shft+h"/>
                    159:   <textbox value="type ctl+shft+g"/>
                    160:   <spacer flex="1"/>
                    161: </window>
                    162: </xmp>
1.65      david     163: 
1.99      brian     164: <li>On page 63: '<b class="broken">But there are also CSS versions of these properties that 
                    165: use the prefix <tt>box-pack</tt> becomes <tt>box-pack</tt> when it's defined in CSS, for example.</b>' has been 
                    166: changed to '<b class="fixed">But there are also CSS versions of these properties that 
                    167: use the prefix <tt>box-</tt>. <tt>pack</tt> becomes <tt>box-pack</tt> when it's defined in CSS, for example.</b>'<br><br>
                    168: 
1.20      david     169: </ul>
                    170: 
1.72      david     171: 
1.75      eric      172: <a name="ch4"></a>
1.72      david     173: <p><b>Chapter 4</b>
                    174: 
                    175: <ul>
                    176: 
                    177: <li>On page 88: '<b class="broken">these are selectors are identical</b>' has been changed to '<b class="fixed">these selectors are 
                    178: identical</b>'<br><br>
                    179: 
1.98      david     180: <li>On page 109: '<b class="broken">The <i>chome</i> URL that the -moz-binding property points to</b>' has been changed to '<b
                    181: class="fixed">The <i>chrome</i> URL that the -moz-binding property points to</b>'<br><br>
1.73      david     182: 
1.72      david     183: </ul>
                    184: 
                    185: 
1.75      eric      186: <a name="ch5"></a>
1.26      petejc    187: <p><b>Chapter 5</b>
                    188: 
                    189: <ul>
1.40      david     190: 
                    191: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
1.54      david     192: '<b class="broken">http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html</b>' to
                    193: '<b class="fixed">http://developer.netscape.com/docs/manuals/index.html?content=javascript.html</b>'<br><br>
1.59      petejc    194: </li>
1.40      david     195: 
1.54      david     196: <li>On page 120: '<b class="broken">&lt;/script.</b>' has been changed to '<b class="fixed">&lt;/script&gt;</b>'<br><br>
1.59      petejc    197: </li>
1.41      david     198: 
1.54      david     199: <li>On page 120: '<b class="broken">dump(l+'\n');</b>' has been changed to '<b class="fixed">dump(len+'\n');</b>'<br><br>
1.59      petejc    200: </li>
1.41      david     201: 
1.102     brian     202: <li>On page 123: Example 5-3
                    203: <xmp class="broken">
1.104     petejc    204: for (var i=0; i<chex.length; i++)
1.102     brian     205:        chex[i].setAttributte("checked", "false");
1.104     petejc    206: for (var i=0; i<unchex.length; i++)
1.102     brian     207:        unchex[i].setAttributte("checked", "true");
                    208: </xmp>
                    209: has been changed to 
                    210: <xmp class="fixed">
1.104     petejc    211: for (var i=0; i<chex.length; i++)
1.102     brian     212:     chex[i].setAttribute("disabled", "false");
1.104     petejc    213: for (var i=0; i<unchex.length; i++)
1.102     brian     214:     unchex[i].setAttribute("disabled", "true");
                    215: </xmp>
                    216: <br>
                    217: </li>
                    218: 
1.61      david     219: <li>On page 135: Example 5-11 has been changed to
                    220: <xmp class="fixed">
1.59      petejc    221:   <head>
                    222:     <title>Sound Service Play Example</title>
                    223:     <script>  
                    224:       function play() { 
                    225:         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
                    226:         var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
                    227:         sample = sample.QueryInterface(Components.interfaces.nsISound); 
1.62      petejc    228:         const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
1.106     petejc    229:         const SND_I_URL = "nsIURL";
                    230:         const SND_URL = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
                    231:         var url = new SND_URL();
                    232:         url.spec = 'http://jslib.mozdev.org/test.wav';
1.62      petejc    233:         sample.play(url);
1.59      petejc    234:       } 
                    235:     </script>  
                    236:   </head>  
1.75      eric      237:     
1.59      petejc    238:     <form name="form">  
                    239:       <input type="button" value="Play Sound" onclick="play();">  
1.63      petejc    240:     </form>  
1.76      brian     241: </xmp>
                    242: 
                    243: <li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' 
                    244:   has been changed to 
1.61      david     245: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
1.59      petejc    246: </li>
1.43      david     247: 
1.54      david     248: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
                    249: load('chrome/jslib/jslib.js');</b>'<br><br>
1.59      petejc    250: </li>
1.43      david     251: 
1.85      david     252: </ul>
                    253: 
                    254: <a name="ch06"></a>
                    255: <p><b>Chapter 6</b>
                    256: 
                    257: <ul>
                    258: 
1.103     brian     259: <li>On page 145: Example 6-1 has been changed to 
1.85      david     260: 
                    261: <xmp class="fixed">
                    262: var myFile = "xFly.jar";
                    263: initInstall(                      // initialize the installation
                    264:   "Install xFly",                 // display name of installation
                    265:   "xFly",                         // package name
                    266:   "0.0.1",                        // version of install
                    267:   1);                             // flags - an optional argument, 
                    268:                                   // reserved for future use
1.105     petejc    269: f = getFolder("Chrome");    // specify a target directory
1.85      david     270: setPackageFolder(f);
1.105     petejc    271: addFile(myFile);            // add software to the installation
1.85      david     272: registerChrome(
                    273:   PACKAGE | DELAYED_CHROME,       // chrome switch (i.e., type)
                    274:   getFolder("Chrome","xFly.jar"), // destination of package
                    275:   "content/xFly/");               // location of manifest in package
1.105     petejc    276: if (0 == getLastError( ))       // if there have been no errors:
                    277:   performInstall( );            // install "xfly.jar"
                    278: else                          // otherwise
                    279:   cancelInstall( );             // cancel the installation.
1.85      david     280: </xmp>
                    281: 
                    282: </ul>
                    283: 
1.99      brian     284: <a name="ch07"></a>
                    285: <p><b>Chapter 7</b>
                    286: 
                    287: <ul>
                    288: 
                    289: <li>On page 181: There are 3 errors in Figure 7-2 ...<br><br>
                    290: 
                    291: 1)  In the XUL box, '<b class="broken">klabel="Input Field"</b>' should be '<b class="fixed">label="Input Field"</b>'<br><br>
                    292: 
                    293: 2)  In the XBL box, '<b class="broken">&lt;binding id+"inputfield"&gt;</b>' should be '<b class="fixed">&lt;binding id="inputfield"&gt;</b>'<br><br>
                    294: 
                    295: 3)  In the XBL box, '<b class="broken">&lt;xul:label xbl:inherits="value+label"?&gt;</b>' should be '<b class="fixed">&lt;xul:label xbl:inherits="value=label"/&gt;</b>'<br><br>
                    296: 
                    297: Here is a correct image <b>(Click for bigger version)</b>:<br><br>
                    298: 
1.101     brian     299: <a href="http://books.mozdev.org/screenshots/moz_0702.gif"><img src="http://books.mozdev.org/screenshots/moz_0702_small.gif" alt="New Figure 7-2"></a>
1.99      brian     300: 
                    301: </li>
                    302: 
                    303: </ul>
                    304: 
                    305: </p>
1.75      eric      306: 
                    307: <a name="ch08"></a>
1.24      petejc    308: <p><b>Chapter 8</b>
                    309: 
                    310: <ul>
1.44      david     311: 
1.93      petejc    312: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been 
                    313: changed to '<b class="fixed">QueryInterface</b>'<br><br></li>
1.44      david     314: 
1.94      petejc    315: <li>On page 222: In Example 8-4 has been changed to:
1.45      david     316: 
1.97      david     317: <xmp class="fixed">
1.92      petejc    318: function SimpleComponent(){}
                    319: 
                    320: SimpleComponent.prototype = {
                    321: 
                    322:     get yourName()        { return this.mName; },
                    323:     set yourName(aName)   { return this.mName = aName; },
                    324: 
                    325:     write: function () { dump("Hello " + this.mName + "\n"); },
                    326:     change: function (aValue) { this.mName = aValue; },
                    327:     mName: "a default value",
                    328: 
                    329:     QueryInterface: function (iid) {
                    330:         if (!iid.equals(Components.interfaces.nsISimple)
                    331:             && !iid.equals(Components.interfaces.nsISupports))
                    332:         {
                    333:             throw Components.results.NS_ERROR_NO_INTERFACE;
                    334:         }
                    335:         return this;
                    336:     }
                    337: }
                    338: 
                    339: var Module = {
                    340:     firstTime: true,
                    341: 
                    342:     registerSelf: function (compMgr, fileSpec, location, type) {
                    343:         if (this.firstTime) {
                    344:             dump("*** Deferring registration of simple JS components\n");
                    345:             this.firstTime = false;
                    346:             throw Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN;
                    347:         }
                    348:         debug("*** Registering sample JS components\n");
                    349:         compMgr =
                    350: compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);
                    351:         compMgr.registerFactoryLocation(this.myCID,
                    352:                                         "Simple JS Component",
                    353:                                         this.myProgID,
                    354:                                         fileSpec,
                    355:                                         location,
                    356:                                         type);
                    357:     },
                    358: 
                    359:     getClassObject : function (compMgr, cid, iid) {
                    360:         if (!cid.equals(this.myCID))
                    361:         throw Components.results.NS_ERROR_NO_INTERFACE
                    362:         if (!iid.equals(Components.interfaces.nsIFactory))
                    363:         throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
                    364:         return this.myFactory;
                    365:     },
                    366: 
                    367:     myCID: Components.ID("{98aa9afd-8b08-415b-91ed-01916a130d16}"),
                    368:     myProgID: "@mozilla.org/js_simple_component;1",
                    369: 
                    370:     myFactory: {
                    371:         createInstance: function (outer, iid) {
                    372:             dump("CI: " + iid + "\n");
                    373:             if (outer != null)
                    374:             throw Components.results.NS_ERROR_NO_AGGREGATION;
                    375:             return (new SimpleComponent()).QueryInterface(iid);
                    376:         }
                    377:     },
                    378: 
                    379:     canUnload: function(compMgr) {
                    380:         dump("****** Unloading: Simple JS component! ****** \n");
                    381:         return true;
                    382:     }
                    383: }; // END Module
                    384: 
                    385: function NSGetModule(compMgr, fileSpec) { return Module; }
                    386: </xmp>
1.102     brian     387: </li>
                    388: 
                    389: <li>On page 237: Example 8-13, line 9
                    390: <xmp class="broken">
                    391:     NS_INIT_REFCNT( );  // has been depricated use NS_INIT_ISUPPORTS()
                    392:     mValue = PL_strdup("default value");
                    393: </xmp>
                    394: has been changed to 
                    395: <xmp class="fixed">
                    396:     // NS_INIT_REFCNT( );  // has been depricated use NS_INIT_ISUPPORTS()
                    397:     NS_INIT_ISUPPORTS();
                    398:     mValue = PL_strdup("default value");
                    399: </xmp>
                    400: <br>
1.92      petejc    401: </li>
                    402: 
                    403: <li>On page 239: Example 8-15 has been changed to <br/></li>
1.25      petejc    404: 
1.54      david     405: <xmp class="fixed">
1.24      petejc    406: DEPTH         = ../../..
                    407: topsrcdir     = ../../..
                    408: srcdir        = .
                    409: VPATH         = .
                    410: 
                    411: include $(DEPTH)/config/autoconf.mk
                    412: 
                    413: MODULE        = xpcom
                    414: XPIDL_MODULE  = simple
                    415: LIBRARY_NAME  = simple
                    416: IS_COMPONENT  = 1
                    417: MODULE_NAME   = nsSimpleModule
                    418: REQUIRES      = string \
                    419:                 xpcom \
                    420:                 $(NULL)
                    421: 
                    422: 
                    423: CPPSRCS   =              \
                    424:     nsSimple.cpp         \
                    425:     nsSimpleModule.cpp   \
                    426:     $(NULL)
                    427: 
                    428: XPIDLSRCS = nsISimple.idl
                    429: 
                    430: include $(topsrcdir)/config/config.mk
                    431: 
                    432: LIBS    +=        \
                    433:     $(XPCOM_LIBS) \
                    434:     $(NSPR_LIBS)  \
                    435:     $(NULL)
                    436: 
                    437: include $(topsrcdir)/config/rules.mk
                    438: 
                    439: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
                    440: 
                    441: install:: $(TARGETS)
1.25      petejc    442: </xmp>
1.24      petejc    443: 
                    444: </ul>
                    445: 
1.75      eric      446: <a name="ch9"></a>
                    447: <p><b>Chapter 9</b>
1.20      david     448: 
1.75      eric      449: <ul>
1.79      david     450: 
1.108     brian     451: On page 247: '<b class="broken">When it appears inside the <template>, the <listbox> tag has two
                    452: special attributes.</b>' has been changed to '<b class="fixed">The <listbox> gains two special
                    453: attributes when it contains a <template>.</b>'
                    454: <br><br>
                    455: 
                    456: On page 250 '<b class="broken">"Using Data for Style,"</b>' has been changed to '<b class="fixed">"Using Data for Style",</b>'
                    457: <br><br>
                    458: 
                    459: On page 254, Example 9-5,
                    460: 
                    461: <xmp class="broken">
                    462: '  <rdf:Description about="urn:root">
                    463:      <fly:list</td>>
                    464:        <rdf:Seq>
                    465:          <rdf:li>
                    466:            <rdf:Description ID="House">
                    467:              <fly:label</td>>House</fly:label>
                    468:              <fly:list</td>>
                    469:                <rdf:Seq>
                    470:                  <rdf:li>
                    471:                    <rdf:Description about="musca_autumnalis"
                    472:                                     fly:label</td>="Face Fly"/>
                    473:                  </rdf:li>
                    474:                <rdf:Seq>
                    475:              </fly:list>
                    476:          </rdf:li>
                    477:        </rdf:Seq>
                    478:      </fly:list>
                    479:    </rdf:Description>'
                    480: </xmp>
                    481: 
                    482: has been changed to
                    483: 
                    484: <xmp class="fixed">
                    485: '  <rdf:Description about="urn:root">
                    486:      <fly:list</td>>
                    487:        <rdf:Seq>
                    488:          <rdf:li>
                    489:            <rdf:Description ID="House">
                    490:              <fly:label</td>>House</fly:label>
                    491:            </rdf:Description>
                    492:            <fly:list</td>
                    493:              <rdf:Seq>
                    494:                <rdf:li>
                    495:                 <rdf:Description about="musca_autumnalis"
                    496:                                  fly:label</td>="Face Fly"/>
                    497:                </rdf:li>
                    498:              <rdf:Seq>
                    499:            </fly:list>
                    500:          </rdf:li>
                    501:        </rdf:Seq>
                    502:      </fly:list>
                    503:    </rdf:Description>'
                    504: </xmp>
                    505: 
1.109     brian     506: <li>On page 255, Example 9-6 
                    507: 
                    508: <xmp class="broken">
                    509:      <treecols>
                    510:        <treecol id="LabelCol" flex="1" sort="?label" label="Name"
                    511:                 primary="true" />
                    512:        <treecol id="LoCol" flex="1" sort="?location" label="Location"/>
                    513:        <treecol id="ColCol" flex="1" sort="?color" label="Color"/>
                    514:      </treecols>
                    515: </xmp>
                    516: 
                    517: has been changed to
                    518: 
                    519: <xmp class="fixed">
                    520:      <treecols>
                    521:        <treecol id="LabelCol" flex="1"
                    522:                 sort="rdf:http://xfly.mozdev.org/fly-rdf#label"
                    523:                 class="sortDirectionIndicator" primary="true" label="Name"/>
                    524:        <treecol id="LoCol" flex="1"
                    525:                 sort="rdf:http://xfly.mozdev.org/fly-rdf#location"
                    526:                 label="Location"/>
                    527:        <treecol id="ColCol" flex="1" 
                    528:                 sort="rdf:http://xfly.mozdev.org/fly-rdf#color"
                    529:                 label="Color"/>
                    530:      </treecols>
                    531: </xmp>
                    532: 
1.79      david     533: <li>On page 257: In Example 9-7
                    534: 
                    535: <xmp class="broken">
1.105     petejc    536:   <triple subject="?listitem"
                    537:         predicate=" http://xfly.mozdev.org/fly-rdf#location"
                    538:         object="?location"/>
1.79      david     539: </xmp>
                    540: 
                    541: has been changed to
                    542: 
                    543: <xmp class="fixed">
                    544:         <triple subject="?listitem"
1.105     petejc    545:         predicate="fly-location#location"
1.79      david     546:                 object="?location"/>
                    547: </xmp>
1.108     brian     548: 
                    549: On page 258 '<b class="broken">The most important additions to Example 9-7 are the
                    550: container="?uri" member="?listitem" attributes on the &lt;template&gt;</b>' has been
                    551: changed to '<b class="fixed">The most important inclusions to Example 9-7 are the
                    552: container="?uri" member="?listitem" attributes on the &lt;template&gt;</b>'
                    553: <br><br>
1.79      david     554: 
1.75      eric      555: </ul>
                    556: 
                    557: <a name="ch10"></a>
1.20      david     558: <p><b>Chapter 10</b>
                    559: 
                    560: <ul>
1.77      david     561: 
1.107     brian     562: <li>One page 268, In Example 10-1 '<b class="broken">&lt;rdf:Description about="http://my.jar-of-flies.com"&gt;</b>' has been
                    563: changed to '<b class="fixed">&lt;rdf:Description about="urn:root"&gt;</b>'<br><br>
                    564: 
                    565: <li>On page 279: '<b class="broken">The URI is also accessible as a datasource property:</b>' has been
                    566: changed to '<b class="fixed">The URI, such as rdf:someName, is also accessible as a datasource
                    567: property:</b>'<br><br>
                    568: 
1.78      david     569: <li>On page 280: In Table 10-3 '<b class="broken">Mostly used for retrieving, datasources, resources, and literals.</b>' has been
                    570: changed to '<b class="fixed">Mostly used for retrieving datasources, resources, and literals.</b>'<br><br>
1.77      david     571: 
1.107     brian     572: <li>On page 288:
                    573: 
                    574: <xmp class="broken">
                    575: 'containerUtils = Components.classes['@mozilla.org/rdf/container-utils;1'
                    576: getService(Components.interfaces.nsIRDFContainerUtils);'
                    577: </xmp>
                    578: 
                    579: has been changed to:
                    580: 
                    581: <xmp class="fixed">
                    582: 'containerUtils = Components.classes['@mozilla.org/rdf/container-utils;1'].
                    583: getService(Components.interfaces.nsIRDFContainerUtils);'
                    584: </xmp>
                    585: 
1.77      david     586: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed to '<b
                    587: class="fixed">http://jslib.mozdev.org</b>'<br><br>
                    588: 
1.107     brian     589: <li>On page 297, Example 10-14: '<b class="broken">// if(del)gRDF.removeSeq('types',false);</b>' has been deleted. Not
                    590: needed in this example.<br><br>
                    591: 
1.68      david     592: </ul>
                    593: 
                    594: 
1.75      eric      595: <a name="ch11"></a>
1.69      david     596: <p><b>Chapter 11</b>
1.68      david     597: 
1.70      david     598: <ul> 
                    599: <li>On page 314: In Example 11-5 and Example 11-6 '<b class="broken">var linetext =
                    600: document.createTextNode(messageParagraphs[i]);</b>' has been changed to '<b class="fixed">var linetext =
                    601: document.createTextNode(lines[i]);</b>'<br><br>
1.20      david     602: </ul>
                    603: 
                    604: 
1.75      eric      605: <a name="ch12"></a>
1.20      david     606: <p><b>Chapter 12</b>
                    607: 
                    608: <ul>
                    609: 
1.47      david     610: <li>On page 336: In Example 12-6
1.20      david     611: 
1.54      david     612: <xmp class="broken">
1.38      petejc    613:  print `  <checkbox label="%s" />' % form['op1'].value
                    614:  print `  <checkbox label="%s" />' % form['op2'].value
                    615:    print `  <checkbox label="%s" />' % form['op3'].value
1.47      david     616: </xmp>
                    617: 
1.48      david     618: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
1.47      david     619: 
1.55      david     620: <xmp class="fixed">
1.48      david     621:    print '  <checkbox label="%s" />' % form['op1'].value
                    622:    print '  <checkbox label="%s" />' % form['op2'].value
1.38      petejc    623:    print '  <checkbox label="%s" />' % form['op3'].value
                    624: </xmp>
1.47      david     625: 
1.81      david     626: <!--
1.47      david     627: <li>On page 339: A new 'Certificate Authorities and Digital
                    628: Signatures' section is being written with drafts available on <a
                    629: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
1.38      petejc    630: </li>
1.81      david     631: -->
1.47      david     632: 
1.20      david     633: </ul>
                    634: 
                    635: 
1.75      eric      636: <a name="appa"></a>
1.20      david     637: <p><b>Appendix A</b>
                    638: 
                    639: <ul>
1.18      david     640: 
1.54      david     641: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
                    642: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
1.103     brian     643: </li>
                    644: 
                    645: <li>On page 367 and 368: CVS Instructions ...
                    646: <br/><br/>
                    647: Linux Instructions (p367)<br/>
                    648: <xmp class="broken">
                    649: 1. Set the CVSROOT variable: 
                    650:     $ setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
                    651: 2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous":
                    652: </xmp>
                    653: 
                    654: has been changed to (note the adding to '=' after CVSROOT, 
                    655: the changing of 'setenv' to 'export', 
                    656: and the simplification of instruction 2)
                    657: 
                    658: <xmp class="fixed">
                    659: 1. Set the CVSROOT variable: 
                    660:     $ export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
                    661: 2. Log in using the password "anonymous":
                    662: </xmp>
                    663: 
                    664: Windows Instructions (p368)<br/>
                    665: <xmp class="broken">
                    666: 1. Set the CVSROOT variable: 
                    667:     > set CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
                    668: 2. Log in as anonymous@cvs-mirror.mozilla.org using the password "anonymous":
                    669: </xmp>
                    670: 
                    671: has been changed to (note the adding to '=' after CVSROOT, 
                    672: and the simplification of instruction 2)
                    673: 
                    674: <xmp class="fixed">
                    675: 1. Set the CVSROOT variable: 
                    676:     > set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
                    677: 2. Log in using the password "anonymous":
                    678: </xmp>
                    679: 
                    680: </li>
1.18      david     681: 
1.1       david     682: </ul>
1.2       david     683: 
1.81      david     684: <a name="index"></a>
                    685: <p><b>Index</b>
                    686: 
                    687: <ul>
                    688: 
1.103     brian     689: <li>
                    690: On page 437: '<b class="broken">Chimera, 2</b>' has been changed to '<b class="fixed">Camino, 2</b>'<br><br>
                    691: </li>
1.81      david     692: 
                    693: </ul>
1.75      eric      694: 
1.82      david     695: 
                    696: <br><br>
                    697: 
1.110   ! cdn       698: <?php $hide_text_control=1; $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>