dynamic running headers: how to know if a column is filled??

View: New views
4 Messages — Rating Filter:   Alert me  

dynamic running headers: how to know if a column is filled??

by siameiz :: Rate this Message:

| View Threaded | Show Only this Message

Hello!

It’s a long time that I’m facing this problem. I’m creating a PDF from a XML encoded dictionary. I want two headers for each page, the first entry within the page and the last. Each page contains two columns. The problem is that, in the last page of each letter, if only one column is outputted, I don’t want the last entry to be retrieved to the marker. How can I know if the second column is filled?

Sorry for my poor English. I expect you could understand me. Thanks.

Re: dynamic running headers: how to know if a column is filled??

by Tony Graham-3 :: Rate this Message:

| View Threaded | Show Only this Message


On Wed, Apr 09 2008 11:05:13 +0100, siameiz@... wrote:
> It’s a long time that I’m facing this problem. I’m creating a PDF from a XML
> encoded dictionary. I want two headers for each page, the first entry within
> the page and the last. Each page contains two columns. The problem is that,
> in the last page of each letter, if only one column is outputted, I don’t
> want the last entry to be retrieved to the marker. How can I know if the
> second column is filled?

I haven't tried this, but what about adding an extra marker with empty
content after (or at the end of) the last entry?  It won't solve your
one-column or two-column problem (which can't be solved in any standard
way because that sort of feedback isn't in XSL 1.1), but it should get
you only one visible marker on the last page.

Alternatively, you could balance the columns on the last page by putting
an empty block with span="all" [1] after the FOs for the dictionary
entries.  You would then be much less likely to have a one-column final
page.

Related to this, the current draft XSL FO 2.0 requirements includes a
section on coalescing markers [2], which could be helpful if your last
page contained just one dictionary entry.

Regards,


Tony Graham                         Tony.Graham@...
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
"Testing XSLT" tutorial, XTech 2008, 6 May 2008, Dublin, Ireland

[1] http://www.dpawson.co.uk/xsl/sect3/N8542.html#d13286e163
[2] http://www.w3.org/TR/2008/WD-xslfo20-req-20080326/#N66468


Re: dynamic running headers: how to know if a column is filled??

by siameiz :: Rate this Message:

| View Threaded | Show Only this Message

hello!
 
> Alternatively, you could balance the columns on the last page by putting
> an empty block with span="all" [1] after the FOs for the dictionary
> entries.  You would then be much less likely to have a one-column final
> page.

that's ok!! thanks
 
> Related to this, the current draft XSL FO 2.0 requirements includes a
> section on coalescing markers [2], which could be helpful if your last
> page contained just one dictionary entry.
>

is there any free XSL FO 2.0 processor?? I've been looking for one, but without success...

thanks for your attention

XSL FO 2.0 [Was: dynamic running headers: how to know if a column is filled??]

by Tony Graham-3 :: Rate this Message:

| View Threaded | Show Only this Message


On Tue, Apr 15 2008 14:08:30 +0100, siameiz@... wrote:
...
>> Related to this, the current draft XSL FO 2.0 requirements includes a
>> section on coalescing markers [2], which could be helpful if your last
>> page contained just one dictionary entry.
>
> is there any free XSL FO 2.0 processor?? I've been looking for one, but
> without success...

The XSL FO 2.0 effort is only at the stage of publishing the first draft
of the requirements document, so there are no XSL FO 2.0 processors,
free or otherwise.

So while it's too early for there to be a XSL FO 2.0 processor, this is
the time when you can influence what goes into XSL FO 2.0 by completing
the requirements survey [1] and providing feedback on the current draft
requirements [2].

Regards,


Tony Graham            
Director                            Tony.Graham@...
Menteith Consulting Ltd                   W3C XSL FO SG Invited Expert
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
"Testing XSLT" tutorial, XTech 2008, 6 May 2008, Dublin, Ireland

[1] http://www.w3.org/2002/09/wbs/1/xslfo20requirements/
[2] http://www.w3.org/TR/2008/WD-xslfo20-req-20080326