Corrections to Chapter 13 of XML in a Nutshell, XSL Formatting Objects

p. 212: There's an extra fo:region-body element in the second code fragment on the page. Delete the fifth line containing the <fo:region-body/> start-tag. That is, the fragment should read:

<fo:simple-page-master margin-right="0.5in"  margin-left="0.5in"
                       margin-bottom="0.5in" margin-top="0.5in"
                       page-width="8.5in"    page-height="11in"
                       master-name="first">
  <fo:region-before extent="0.5in"/>
  <fo:region-after  extent="0.5in"/>
  <fo:region-start  extent="0.5in"/>
  <fo:region-end    extent="0.5in"/>
  <fo:region-body   margin-top="1.0in"  margin-bottom="1.0in"
                    margin-left="0.5in" margin-right="0.5in"/>
</fo:simple-page-master>

pp. 219-220: The wrong code got into Example 13-5. It should read: (The UTF-8 encoding may be a little screwed up on this page. I'll fix it as soon as I get a minute.)

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in"
      margin-top="1in" page-width="8.5in" page-height="11in" master-name="first">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  
  <fo:page-sequence master-name="first">
    <fo:flow>
      <fo:block font-family="Times, 'Times New Roman', 
       serif" font-size="12pt">
        <fo:block font-family="Helvetica, Arial, sans-serif" 
          font-size="20pt" font-weight="bold" 
          text-align="center">Southern Corn Bread</fo:block>
        <fo:list-block>
        <fo:list-item>
      <fo:list-item-label>
        <fo:block>ш묨</fo:block></fo:list-item-label>
        <fo:list-item-body><fo:block>
      1 cup
      flour
        </fo:block></fo:list-item-body>
      </fo:list-item>
      <fo:list-item>
        <fo:list-item-label><fo:block>ш묨</fo:block></fo:list-item-label>
        <fo:list-item-body><fo:block>
      4 tablespoons 
      Royal Baking Powder
    </fo:block></fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
      <fo:list-item-label><fo:block>ш묨</fo:block></fo:list-item-label>
      <fo:list-item-body><fo:block>
       teaspoon
      salt
    </fo:block></fo:list-item-body></fo:list-item>
    <fo:list-item>
      <fo:list-item-label><fo:block>ш묨</fo:block></fo:list-item-label>
      <fo:list-item-body><fo:block>
      1 cup
      corn meal
    </fo:block></fo:list-item-body></fo:list-item>
    <fo:list-item>
      <fo:list-item-label><fo:block>ш묨</fo:block></fo:list-item-label>
      <fo:list-item-body><fo:block>
      1 cups
      whole milk
    </fo:block></fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
      <fo:list-item-label><fo:block>ш묨</fo:block></fo:list-item-label>
      <fo:list-item-body><fo:block>
      4 tablespoons
      melted butter
      </fo:block></fo:list-item-body>
    </fo:list-item>
  </fo:list-block>
  
  <fo:block margin-top="12pt" margin-left="4pt">
    Sift flour, baking powder, sugar & salt together.
    Add 1 cup corn meal.
    
      Beat egg in cup and add beaten egg and 1 cups whole 
       milk to make a batter. Stir well.
    
    
      Add melted shortening and beat until light and thoroughly mixed.
    
    
      Pour into greased shallow pan or greased muffin rings.
    
    
      Bake in hot oven at 425ݬ F for
      25 minutes.
    
    
      Cut into squares if cooked in shallow pan.
    
  </fo:block>
  
  <fo:block margin-top="12pt" margin-left="4pt">
    After my mother-in-law Marjorie Anderson died,
    Beth and I found this recipe written on the "extra recipes"
    page in a local cookbook in her cupboard.
    This was published by The Episcopal Churchwomen,
    Church of Ascension, Mt. Sterling, 
    Kentucky.
  </fo:block>
  
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

[ XML in a Nutshell Corrections | XML in a Nutshell Home Page | Table of Contents | Examples | Order from Amazon ]

Copyright 2001 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified November 29, 2001