XForms Essentials

Errata for XForms Essentials

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 19
Epigraphs (both)

The epigraph attributes, if you look closely, have both a typographical (M-dash, I think) and a shorter hyphen. Should be just the typograpical dash. ---Pearl Bailey ---David Weinberger

Anonymous   
Printed
Page 39
within Figure 3-1

xml:lang="eng" should be xml:lang="en"

Anonymous   
Printed
Page 57
Last line in section "count-non-empty()"

The example given will return NaN rather than a numeric value as printed. sum(/operands/operand) div count-non-empty(/operands/operand) The correct XPath to use is: sum(/operands/operand[string-length(normalize-space(.))>0]) count-non-empty(/operands/operand) There should be a WARNING: As specified in XPath, sum() cannot handle blank nodes, which return NaN. A special predicate test such as the one shown here must be used. Note that XPath 2.0, still a draft as of this writing, fixes this deficiency.

Anonymous   
Printed
Page 102
3rd section in example

The ">" is missing between "label" and "<9780596003692:itemset". The line wrap is also a little awkward, but it's OK. The lines <9780596003692:label>Send a copy to the following email addresses</xforms: label<9780596003692:itemset nodeset="email" model="list_items"> should be <9780596003692:label>Send a copy to the following email addresses</xforms:label> <9780596003692:itemset nodeset="email" model="list_items">

Anonymous   
Printed
Page 112
middle of page, code block

example is missing ev:event attributes on an <insert> and two consecutive <setvalue> elements. should be ... <setvalue ev:event="DOMActivate" ref= ... <setvalue ev:event="DOMActivate" ref= ... <setvalue ev:event="DOMActivate" ref= ... Also, the first <setvalue> has a closing tag of </quantity>. Obviously, it should be </setvalue>

Anonymous   
Printed
Page 115
within Figure 7-1

<9780596003692::input> should be <xforms:input>

Anonymous   
Printed
Page 115
2nd sentence from bottom of page

the word "change" in the parenthesis should be "chance".

Anonymous   
Printed
Page 123
middle of page, 3rd line from bottom of example

The name 'lineset' is incorrect. It should be 'repeat_id'. That is, <setvalue ref="/order/items/item[index('lineset')]/@price"/> should be <setvalue ref="/order/items/item[index('repeat_id')]/@price"/>

Anonymous   
Printed
Page 145
2nd code sample (one liner)

includenamespacesprefixes="" should be includenamespaceprefixes="" ('namespace' isn't plural)

Anonymous   
Printed
Page 150
table 8-1

inlcudenamespaceprefixes should be: includenamespaceprefixes (transpose l/c)

Anonymous   
Printed
Page 151
within Table 8-1

last entry in table: "multipart-port" should be "multipart-post" Throughout the table, all 'curly quotes' should be 'straight quotes'

Anonymous   
Printed
Page 152
Example 9-1

The namespace declaration is wrong, containing a trailing slash This: @namespace 9780596003692 url(http://www.w3.org/2002/xforms/) Should be this: @namespace 9780596003692 url(http://www.w3.org/2002/xforms)

Anonymous   
Printed
Page 171
Concatenating a Currency Symbol example

The example shows the calculate expression as: calculate="if( starts-with(E, '?'), ., concat( '?',E ))" it should be: calculate="if( starts-with( ., 'E'), ., concat( 'E', . ))" NOTE: E = EURO Symbol, couldn't get it to render properly

Anonymous   
Printed
Page 175
3rd paragraph (just after 2nd code block)

typo - the word grandchild should be entirely in fixed font, not just 'child' In HTMLspeak, it currently is grand<code>child</code>, but it should be <code>grandchild</code>

Anonymous