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

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

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