Menu

#71 Errors in TCG, 4th edition

open
5
2008-07-12
2008-07-12
No

Here are some minor errors in Docbook XSL TCG, fourth edition.

1. http://www.sagehill.net/docbookxsl/OnlineResources.html (page 5)

The address to the SF account registration page is https://sourceforge.net/account/registration/
(as of 2008-07-12).

2. http://www.sagehill.net/docbookxsl/ToolsSetup.html#Validation (page 14)
"For example, xsltproc includes a program called xmllint...".

This is not correct: xmllint is not part of xsltproc; it comes with the libxml2 library.

3. http://www.sagehill.net/docbookxsl/InstallingAProcessor.html (pages 24, 25, 26)

Replace "xalan25.jar" with "xalan27.jar".

4. http://www.sagehill.net/docbookxsl/SpecialChars.html#MissingChars (page 331)
"Most XSLT processors do not do full validation, but they do load the entities defined in the DTD."

http://www.sagehill.net/docbookxsl/ToolsSetup.html#Validation (page 13)
"Most XSL processors won't automatically take the time to validate your document while it is converting it to HTML or XSL-FO".

Both these sentences are a little misleading: the XML parser does the validation and loading of entities.

5. http://www.sagehill.net/docbookxsl/OtherOutputForms.html#XhtmlXsltproc (page 409)
"The head element includes an XHTML namespace declaration"

Wrong: it is the "html" element that has the namespace declaration.

Discussion

  • Robert Stayton

    Robert Stayton - 2008-07-14

    Logged In: YES
    user_id=193218
    Originator: NO

    Thanks for this feedback. I'll fix the book source and add them to the book's Errata sheet.

    I'm not clear about what you mean by item 4, though. The XML parser used by xslt processors does not apply the DTD rules to the XML content. It will flag non-well-formed input, but it won't flag invalid input. Can you clarify what you mean?

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2008-07-14

    Logged In: YES
    user_id=582041
    Originator: YES

    Regarding item 4:

    It's not a big deal, I just think that it may be a good idea to be clear about the separate responsibilites of XML parsers and XSLT processors. It is a bit misleading to say that "most XSLT processors do not do full validation", when they in fact don't do any validation at all.

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2010-01-01

    10. http://www.sagehill.net/docbookxsl/DraftMode.html (page 465)

    "The pathname for the image file draft.png is contained in the draft.watermark.image parameter, which by default is set to a web address, so you might want to set it to a local file. Or you could use an XML catalog entry to redirect the parameter's URL value to a local file."

    The last sentence is not correct. A catalog cannot be used to rewrite the draft.watermark.image location. A parameter value is just a string; it is not the type of resource identifier that can be resolved in a catalog.