Re: DOCBOOK-APPS: Generating Preview Documents

2002-10-17 Thread Bob Stayton

On Thu, Oct 17, 2002 at 07:27:26AM +0200, Stephan Wiesner wrote:
 Hi list,
 I want to automate the process of generating a preview document. For the
 HTML version this is very simple, I just enter the following XSLT into
 my master style.
 
   
   xsl:template match=chapter
 xsl:if test=@id='chap_preview'
   xsl:apply-templates /
 /xsl:if
 
 !-- else nothing --
   /xsl:template
   
 Now, I get a document with TOC (including page numbers), appendixes and
 one chosen chapter.
 
 When, however, I try it with FOP, I get a 'null' and that is that .-(
 The FO looks okay to me.
 The problem here is the chapter I want to render. If I don't have one
 with the given id in my document, the document is generated correctly.
 
 Any ideas? Anybody did something like this before and can show me a
 different way?

I'm not completely clear on what you mean by a preview
document.  It seems you want a complete document except
all chapters but one do not appear?  If that is
the case, you might try using xsl:apply-imports/ in your
customization instead of xsl:apply-templates/.

When you do apply-templates, it is only being applied to
the children of chapter.  But you need the chapter element
template to start the page-sequence.  By using
apply-imports instead, you tell the processor to use
the original chapter template.  Since it is conditional
on the selected id, only that chapter should be output.

If you just want to generate a chapter with its own TOC,
you can do it with a couple of parameters and the
stock fo stylesheet:

rootid=chap_preview
generate.toc=chapter toc

The first parameter selects only that element for output.
The second parameter causes the chapter to have a TOC
(which it normally does not have in print).

-- 

Bob Stayton 400 Encinal Street
Publications Architect  Santa Cruz, CA  95060
Technical Publications  voice: (831) 427-7796
Caldera International, Inc. fax:   (831) 429-1887
email: [EMAIL PROTECTED]



DOCBOOK-APPS: Figures broken in half (kind of)

2002-10-17 Thread Mário Filipe

Hi

In the work that I'm doing i have to write several algorithms and I
decided to use the following markup:

figure
  title
  programlisting
Algoritm
  /programlisting
/figure

I want to know if there is a way of preventing the algorithm to break
across pages?

I'm using dsssl with jade.

P.S As an alternative I would accept :

  do a
  do b
 (continues on next page)

- page break 
  
  do c
  do d
  done

-- 
Mario Filipe 
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf 



signature.asc
Description: This is a digitally signed message part


DOCBOOK-APPS: Re: Line under header

2002-10-17 Thread Norman Walsh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

/ Mário Filipe [EMAIL PROTECTED] was heard to say:
| Is there an easy way (or a way at all) to draw a line between the header
| and the body of a page?

Using XSLT or DSSSL?

Be seeing you,
  norm

- -- 
Norman Walsh [EMAIL PROTECTED]  | When told of a man who had
http://www.oasis-open.org/docbook/ | acquired great wealth, a sage
Chair, DocBook Technical Committee | replied, 'Has he also acquired the
   | days in which to spend
   | it?'--Solomon Ibn Gabirol
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 http://mailcrypt.sourceforge.net/

iD8DBQE9rha7OyltUcwYWjsRAoBVAKCeHu6lxLTDuKFBnVGHEZ0NddIK1gCfb+kq
l6zpTBOTxJf7TB4/cuUDR/I=
=zVNn
-END PGP SIGNATURE-




DOCBOOK-APPS: Re: removing trailing period from automaticallygenerated section labels

2002-10-17 Thread Norman Walsh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

/ Matthew Hobbs [EMAIL PROTECTED] was heard to say:
| Hi,
|
| I produce PDF from DocBook XML using openjade and pdftex.  I am autolabelling 
| sections by enabling section-autolabel in my DSSSL stylesheet.  This works 
| O.K. except that all the numbers produced have a trailing period that I would 
| rather not have... e.g. instead of this:
|
| 1.1. A day in the life of a life scientist
|
| I'd prefer this:
|
| 1.1 A day in the life of a life scientist
|
| Is there any way to do this?

Yes. Redefine en-label-title-sep; change section to be   instead of . .

(define (en-label-title-sep)
  (list
   (list (normalize abstract) : )
   (list (normalize answer))
   (list (normalize appendix) . )
   (list (normalize caution)  )
   (list (normalize chapter)  . )
   (list (normalize equation) . )
   (list (normalize example)  . )
   (list (normalize figure)   . )
   (list (normalize footnote) . )
   (list (normalize glosssee) : )
   (list (normalize glossseealso) : )
   (list (normalize important): )
   (list (normalize note) : )
   (list (normalize orderedlist)  . )
   (list (normalize part) . )
   (list (normalize procedure). )
   (list (normalize prefix)   . )
   (list (normalize question)  )
   (list (normalize refentry) )
   (list (normalize reference). )
   (list (normalize refsect1) . )
   (list (normalize refsect2) . )
   (list (normalize refsect3) . )
   (list (normalize sect1). )
   (list (normalize sect2). )
   (list (normalize sect3). )
   (list (normalize sect4). )
   (list (normalize sect5). )
   (list (normalize section)  . )
   (list (normalize simplesect)   . )
   (list (normalize seeie) )
   (list (normalize seealsoie) )
   (list (normalize step) . )
   (list (normalize table). )
   (list (normalize tip)  : )
   (list (normalize warning)  )
   ))

Be seeing you,
  norm

- -- 
Norman Walsh [EMAIL PROTECTED]  | Faith makes many of the mountains
http://www.oasis-open.org/docbook/ | which it has to remove.--W. R. Inge
Chair, DocBook Technical Committee |
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 http://mailcrypt.sourceforge.net/

iD8DBQE9rhcSOyltUcwYWjsRAmO9AJ9s9KlKG8Q4XavvgreJAY8ZzNpVYACffqTe
E34SrJAAz/5yC91RDtQyiuo=
=iaRC
-END PGP SIGNATURE-



Re: DOCBOOK-APPS: looking for docbook/xml/xslt/etc courseware

2002-10-17 Thread Steve Ball
Dear Robert,

You wrote:

  i have a couple clients who are interested in a course in
xml/docbook and associated processing.  i could write it myself
at this point, but it would take some time.

  does anyone have recent, up-to-date and battle-tested courseware?
feel free to drop me a note and we can talk.  or point me at a
web site where i can take a look at some offerings and we can
negotiate later.  thanks.


We have a comprehensive range of XML courseware, including
DocBook topics.  You do want to teach DocBook using XML,
and not SGML, right?

The website to look at is http://www.zveno.com/courses/

In fact, our courseware is itself written in DocBook and
the diagrams in SVG.  These are processed using XSLT to
produce the course materials.  We use XSL-FO + FOP for
printed materials and SVG for data projection (instead of
PowerPoint).  IOW, we eat our own dogfood ;-)

Cheers,
Steve Ball

--
Steve Ball|   XSLT Standard Library   | Training  Seminars
Zveno Pty Ltd | Web Tcl Complete  |   XML XSL Schemas
http://www.zveno.com/ |  TclXML TclDOM| Tcl, Web Development
[EMAIL PROTECTED]  +---+-
Ph. +61 2 6242 4099   |   Mobile (0413) 594 462   | Fax +61 2 6242 4099




DOCBOOK-APPS: docbook-xsl/Cocoon/chunk.xsl

2002-10-17 Thread Swen Stsop
I believe I understand that using chunk.xsl with cocoon doesn't work. This is becauseit designed to save the output to files and now send it to standard out I'm on the right track, right?. So is there some stylesheets out there that can support chunking for cocoon? I'm guessing you pass the xslt processor some parameter to output only the section you need, like section=ch02 for example. Something like that. Can anyone help. Thanks.Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com