Re: [xep-support] white-space-treatment and -collapse

From: G. Ken Holman <>
Date: Fri Jul 22 2005 - 09:00:56 PDT

At 2005-07-22 15:32 +0200, Peter Gerstbach wrote:
>Interestingly the fo-prefix was not visible in the intermediate fo file;
>but it was in the XML infoset!

What is important is that the XSL-FO vocabulary be in the XSL-FO namespace,
which doesn't require a prefix if you use the default namespace.

I use XEP in my XSL-FO classroom and all of my exercises (and my personal
XSL-FO work) is done in the default namespace. This prevents having "fo:"
all through my files.

Not everyone subscribes to this practice, and it has gotten in the way for
non-XML-based XSL-FO formatters that rely on the "fo:" prefix (they aren't
using XML processors on the front end, only angle-bracket processors).

But, it is a personal preference and when I teach XSL-FO all of my
projected examples use the default namespace. For new students, I find
that this makes XSL-FO seem "as easy as HTML" which is also often (always?)
written in the default namespace.

Below is my "sandbox XSL-FO instance". Note that I have a redundant
declaration of the default namespace in the <flow> element, as this allows
me to post to mail lists only the flow of an answer (without a page
sequence) and readers of the mail list can then paste the entire flow into
their own page sequence, even if they use "fo:" because my content uses the
default namespace. When doing XSL-FO work (as opposed to testing) I only
declare the default namespace on the document element.

I hope this helps.

. . . . . Ken

<?xml version="1.0" encoding="iso-8859-1"?><!>
<root xmlns=""
       font-family="Times" font-size="20pt">

     <simple-page-master master-name="frame"
                         page-height="297mm" page-width="210mm"
                         margin-top="15mm" margin-bottom="15mm"
                         margin-left="15mm" margin-right="15mm">
       <region-body region-name="frame-body"/>

   <page-sequence master-reference="frame">
     <flow flow-name="frame-body" xmlns="">
       <block>This is a test</block>

World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman       
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness
Legal business disclaimers:
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Fri Jul 22 09:26:05 2005

This archive was generated by hypermail 2.1.8 : Fri Jul 22 2005 - 09:26:07 PDT