Re: DOCBOOK-APPS: Picking up the book title in a header element in theDSSSL?

2001-04-15 Thread Norman Walsh

/ Richard Sharpe [EMAIL PROTECTED] was heard to say:
| I can half see how to do this in DSSSL, but wondered if someone could give
| me a solid pointer.

Look at the templates in print/dbcompon.dsl that handle headers and
footers. A little tree-walking from the point of insertion should allow
you to extract the book title and subtitle fairly easily.

Be seeing you,
  norm

-- 
Norman Walsh [EMAIL PROTECTED]  | A new scientific truth does not
http://www.oasis-open.org/docbook/ | triumph by convincing its
Chair, DocBook Technical Committee | opponents and making them see the
   | light, but rather because its
   | opponents eventually die, and a
   | new generation grows up that is
   | familiar with it (Planck 1949)

--
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: [EMAIL PROTECTED]



Re: DOCBOOK-APPS: Picking up the book title in a header element in theDSSSL?

2001-04-15 Thread Richard Sharpe

At 07:55 AM 4/16/01 -0400, Norman Walsh wrote:
/ Richard Sharpe [EMAIL PROTECTED] was heard to say:
| I can half see how to do this in DSSSL, but wondered if someone could give
| me a solid pointer.

Look at the templates in print/dbcompon.dsl that handle headers and
footers. A little tree-walking from the point of insertion should allow
you to extract the book title and subtitle fairly easily.

Yes, indeed ... Unfortunately, I do not understand enough about the
structure of the tree to get there.

I tried using sgml-tree-root or some such, but that was a dismal failure.

How do I get from the current-node to, say, the top of the tree, which is
where I imagine I can do something like (select-elements (top-of-tree)
(normalize "title")) and also for subtitle ...

Be seeing you,
  norm


Regards
---
Richard Sharpe, [EMAIL PROTECTED]
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba



--
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: [EMAIL PROTECTED]