Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > "docbook -> pdf" - customize author-output

Reply
Thread Tools

"docbook -> pdf" - customize author-output

 
 
tthunder@gmx.de
Guest
Posts: n/a
 
      12-31-2007
Hi @all,

Currently, I am dealing with writing a docbook. It shall be available
in HTML and PDF format.

For layouting and customizing the output (DocBook XSL), I read through
the following book:

DocBook XSL: The Complete Guide
Fourth Edition
Bob Stayton

However, I haven't found a solution for customizing the the "author
output" in the PDF file. The standard behavior looks horrible!

<article lang="en">
<articleinfo>
<title>
My Title
</title>
<author>
<surname>Surname</surname>
<firstname>Kirsten</firstname>
<email>mymail AT gmx.com</email>
</author>
</articleinfo>
<!-- etc -->
</article>

this will be transformed to

Kirsten Surname <mymail AT gmx.com>

No new line, not bold, no "Author:", no "by" or anything like that.
How can I manage customizing the output for PDF? I know that it works,
because I already saw examples.

Does anybody have a beautiful Docbook XSL customization files for PDF?
I haven't found any downloads on the web.

Thanks in advance,
Kirsten
 
Reply With Quote
 
 
 
 
Peter Flynn
Guest
Posts: n/a
 
      01-20-2008
wrote:
> Hi @all,
>
> Currently, I am dealing with writing a docbook. It shall be available
> in HTML and PDF format.
>
> For layouting and customizing the output (DocBook XSL), I read through
> the following book:
>
> DocBook XSL: The Complete Guide
> Fourth Edition
> Bob Stayton
>
> However, I haven't found a solution for customizing the the "author
> output" in the PDF file. The standard behavior looks horrible!
>
> <article lang="en">
> <articleinfo>
> <title>
> My Title
> </title>


That's "linebreak lots-of-spaces My Title linebreak lots-of-spaces"
What you probably mean is <title>My Title</title>
Adding unnecessary white-space in mixed content only leads to grief and
tears and recriminations.

> <author>
> <surname>Surname</surname>
> <firstname>Kirsten</firstname>
> <email>mymail AT gmx.com</email>
> </author>
> </articleinfo>
> <!-- etc -->
> </article>


Otherwise it's fine. What's wrong with it?

> this will be transformed to
>
> Kirsten Surname <mymail AT gmx.com>


Looks pretty normal to me.

> No new line, not bold, no "Author:", no "by" or anything like that.


Why do you want a newline?
Why do you want bold?
Why do you want "Author:"?
Why do you want "by"?

These are all styling questions. They will be different for EVERY
implementation of an XSLT stylesheet for transforming DocBook (or any
other document-oriented XML) to a presentation format.

Stayton (and other authors) cannot guess what layout and design you
want, so they provide customisable templates. YOU have to do the final
bits and pieces.

> How can I manage customizing the output for PDF? I know that it works,
> because I already saw examples.


Write the code.

> Does anybody have a beautiful Docbook XSL customization files for PDF?
> I haven't found any downloads on the web.


Hundreds of people have hundreds of DocBook-to-something XSLT files.
Some of them may even be beautiful, but they will all reflect the
specialist nature of their topic or field of writing.

Two of mine are online and are freely downloadable: one set for the
conversion of the XML FAQ to HTML and to LaTeX-for-PDF at
http://xml.silmaril.ie/admin/availability/ and the other for the
conversion of my online book "Formatting Information" (again to HTML and
to LaTeX-for-PDF) at
http://www.ctan.org/tex-archive/info/beginlatex/src/, but in both cases
they reflect the specific needs of the document concerned and the
specific needs of the type of output I wanted. They will almost
certainly NOT suit what you want to do (they're not very beautiful
either

///Peter
--
XML FAQ: http://xml.silmaril.ie/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize Dragging pixturesk@hotmail.com Firefox 2 07-13-2005 11:51 PM
Firefox 1.03 view/toolbars/customize Pete Firefox 5 05-13-2005 02:57 PM
Customize Visual Studio Ger4ld MCSD 1 06-01-2004 03:33 PM
How to customize "Add Method" Wizard of VS Class View pop-up menu Bill Smarty ASP .Net 0 01-13-2004 06:52 PM
Customize Toolbar Mike Phillips Firefox 4 11-15-2003 08:53 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57