Matthew Braun | 7 Feb 2002 00:16
Picon

Re: DOCBOOK-APPS: access revnumber for footer


Tammy Fox <tfox <at> redhat.com> writes:

>How do I access the value of the revnumber to
>add in a header or footer?

For the revision of an article, I used:

 <xsl:value-of select="//revhistory/revision[last()]/revnumber"/>

This assumes that revhistory contains a list of revisions, ordered from
earliest date to latest date, and that the current version of the document
is the last entry in this list.  If it's the other way around, (rev history
lists most-recent to earliest, and the doc is the first entry in the
revhistory list) then I think you could just substitute first() for last()
in the above expression.

					m <at> 

+-mbraun <at> urbana.css.mot.com-+- I was chasin' a ghost pale and white-----------+
|   Matt Braun -- Motorola, |    and hard to see;  The boys in blue from      |
|  Urbana, IL Design Centre |  Peculiar School are hangin' out in the dark    |
+Cellular Subscriber Sector-+--- and they're lookin' for me. ------------[SR]-+

Tammy Fox | 7 Feb 2002 00:14
Picon
Favicon

Re: DOCBOOK-APPS: access revnumber for footer

On Wed, Feb 06, 2002 at 05:16:34PM -0600, Matthew Braun wrote:
> 
> Tammy Fox <tfox <at> redhat.com> writes:
> 
> >How do I access the value of the revnumber to
> >add in a header or footer?
> 
> For the revision of an article, I used:
> 
>  <xsl:value-of select="//revhistory/revision[last()]/revnumber"/>
> 
> This assumes that revhistory contains a list of revisions, ordered from
> earliest date to latest date, and that the current version of the document
> is the last entry in this list.  If it's the other way around, (rev history
> lists most-recent to earliest, and the doc is the first entry in the
> revhistory list) then I think you could just substitute first() for last()
> in the above expression.
> 

Thanks. Unfortunately, I forgot to mention that I am using DSSSL.

Allin Cottrell | 7 Feb 2002 02:49
Picon
Favicon

DOCBOOK-APPS: docbook xsl: inlineequation

I'm not sure if this would be admitted as an anomaly or not, but...
When I set up an <inlineequation> including a <graphic> for use with
html and htmlhelp, the <graphic> gets processed as

<p><img src=... ></p>

That is, it does _not_ appear inline, it gets a paragraph to itself.
The docbook sgml stylesheets do not do this; they set the graphic
element in a inlineequation without <p></p>, as desired.

One might say that <graphic> ought to be replaced with <inlinegraphic>
or a slew of <mediaobject> lines; I would hope, however, that the
author's intention was clear enough from the embedding inlineequation
tag.

Allin Cottrell.

Stephen Wilhelm | 7 Feb 2002 05:02

DOCBOOK-APPS: Making db2html put chapters and sections in the same page


Hello everyone.  I had figured out how to do this once, but I recently
loaded Red Hat 7.2 on my system, and now my changes are gone.  I want to
force db2html to put chapters and sections in all one HTML page.

I don't know much about db2html and DSSSL, and I've tried to find
information on how to customize it so that I don't have to make changes
to the system stylesheets, but I can't find out how to do that either. 
I can write a customization layer for the DTD, but I've no idea what to
do for stylesheets.

And before anyone tries to suggest that I enable chunking, it seems that
it puts the whole book in one big HTML file, which is not at all what I
want.

If anyone can help, I would appreciate it.

--

-- 
Stephen Wilhelm
    See my Gtk-Perl Tutorial:
    http://personal.riverusers.com/~swilhelm/gtkperl-tutorial/

Colin Meyer | 7 Feb 2002 06:41
Gravatar

DOCBOOK-APPS: PassiveTeX Howto?

Hi, 

I've got some docbook files that I'd like to convert to pdf.
I'm playing with the XSL stylesheets.

I've had some success (I can at least make a pdf file) with FOP,
and would like to compare with PassiveTex before I start customizing.
However, I haven't had the least success with the PassiveTeX.

When trying to process a simple document, I get a Fatal error.

I am using: 

   xalan test.dkb $XSLDIR/fo/docbook.xsl test.fo

followed by:

   pdfxmltex test.fo

The TeX is from SuSE Linux 7.2 (with the xmltex and passivetex rpm's 
from 7.3). Xalan is 2.2.0.

Thanks for any help,
-Colin.

following is the tail of pdfxmltex's logfile:

Start page sequence, using layout , at page 1
Master : no first page, use odd page
 first page master is [\Odd: ]
(Continue reading)

Juan R. Migoya | 7 Feb 2002 07:48
Picon

Re: DOCBOOK-APPS: access revnumber for footer

This is what I have (for me, the relevant element is "releaseinfo",
but I think you can do the same way with "revnumber"):

---------------------------------------------------------------------------------------------------

(define (page-inner-footer gi)
  (let* (
  (bookinf
   (select-elements (children (sgml-root-element)) (normalize
"bookinfo")))
  (bookname
   (select-elements (children bookinf) (normalize "productname")))
  (bookrel
   (select-elements (children bookinf) (normalize "releaseinfo")))
  (bookdate
   (select-elements (children bookinf) (normalize "pubdate"))))
  ;; (foot (join (list bookname "Rev:" bookrel " " bookdate)))
    (with-mode footer-inner-mode
      (make sequence
 font-posture: 'italic
 font-family-name: "Helvetica"
 font-size: 8pt
 (process-node-list bookname)
 (literal "\no-break-space;Rev:")
 (process-node-list bookrel)
 (literal "\no-break-space;")
 (process-node-list bookdate)))))

-----------------------------------------------------------
Regards,
(Continue reading)

Juan R. Migoya | 7 Feb 2002 09:12
Picon

DOCBOOK-APPS: Morerows: Clarification

Some days ago I posted a problem with morerows when
placed in the first columns. I was using Jade, DSSSL
and Jadetex.

I have found that Openjade 1.3.1 works well in this
regard, but you should ommit the empty <entry>
in the column. If you do so with Jade, you get a mess:
You need the empty <entry> in each row. If not, you
get an extra column.

This is just for your info. If somebody thinks I am
wrong, please let us know.

Best Regards,

Juan R. Migoya
SPAIN

Bob Stayton | 7 Feb 2002 09:51
Picon
Favicon

Re: DOCBOOK-APPS: docbook xsl: inlineequation

On Wed, Feb 06, 2002 at 08:49:12PM -0500, Allin Cottrell wrote:
> I'm not sure if this would be admitted as an anomaly or not, but...
> When I set up an <inlineequation> including a <graphic> for use with
> html and htmlhelp, the <graphic> gets processed as
> 
> <p><img src=... ></p>
> 
> That is, it does _not_ appear inline, it gets a paragraph to itself.
> The docbook sgml stylesheets do not do this; they set the graphic
> element in a inlineequation without <p></p>, as desired.
> 
> One might say that <graphic> ought to be replaced with <inlinegraphic>
> or a slew of <mediaobject> lines; I would hope, however, that the
> author's intention was clear enough from the embedding inlineequation
> tag.

Indeed, <graphic> is the culprit in the XSL stylesheets.
It outputs <p> regardless of its parent.

Oddly enough, inlinegraphic is not even a valid choice
according to the 4.1.2 DTD.  The inlineequation
content model is:

(alt?, (graphic+|inlinemediaobject+))

So either the stylesheet should check its parent, or the
DTD should permit inlinegraphic.  It appears your
only choice for correct output right now is inlinemediaobject.

--

-- 
(Continue reading)

Juan R. Migoya | 7 Feb 2002 11:24
Picon

DOCBOOK-APPS: Figure number restart in refentry?

Hello:

I'm working with OpenJade 1.3.3, Jadetex 3.11 and DSSSL-1.74b.

My book has this structure:

<book>
    <chapter>
       <refentry>
       </refentry>
              .
              .
              .
       <refentry>
       </refentry>
    </chapter>
    <chapter>
        <refentry>
       </refentry>

and so on.

I have found that the Figure's numbers restart in each refentry,
so I have the number of the chapter plus the number of the
figure INSIDE this refentry.

It's there some way to avoid this? I would like the numbers to
be contiguous in the same chapter.

(It don't mind if I must make some adjust to that structure. Each
(Continue reading)

Carlos Araya | 7 Feb 2002 14:15

DOCBOOK-APPS: Using DSSSL stylesheets with XML

Good morning:

I know this has been asked before but couldn't find the answer in the
archives.  What do I need to do in order to be able to use Open Jade and the
DSSSL style sheets with XML documents?

Carlos
--

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email               carlos <at> cvc.edu
web                 http://www.cvc1.org/ (work)
                    http://www.silverwolf-net.net (personal)
phone               408 257 0420 (work)
PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Paradoxically, a refusal to 'put a monetary value on life' means that life
is often undervalued.
-- Artificial Intelligence: A Modern Approach


Gmane