The following XML fragment is from the output produced by our stylesheet from the code (Linking figure to an image: encoding).
]]>
Note that I have changed the whitespace so that it will fit on this slide, but have not altered the numeric character references that represent whitespace.