Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:16:41+00:00 2026-05-26T06:16:41+00:00

I have a docBook 4.4 XML file which is a user guide. I can

  • 0

I have a docBook 4.4 XML file which is a user guide. I can use the (Maven) tools to convert that to HTML, PDF no problem. The problem i have is to insert an small HTML code snippet into the resulting HTML file.

I would like to add the following HTML snippet:

<xsl:template name="xxxxxxx">
  <img src="images/pdfdoc.gif">PDF</img>
</xsl:template>

The resulting HTML code looks like this:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="./hilfeKMV.css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.0">
<meta name="date" content="10/12/2011">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084"
    alink="#0000FF">
    <div lang="de" class="book"
        title="Title">
        <div class="titlepage">
            <div>
                <div>
                    <h1 class="title">
                        <a name="d0e1"></a>title
                    </h1>
                </div>
            </div>
            <hr>
        </div>
        <div class="toc">
            <p>
                <b>TOC</b>
            </p>

I would like to insert the HTML snippet before the <div class="toc">…So the question is how to solve this? I’m using docbook 1.76.0
I think there must be something like the following to solve that but i don’t know how to set call-template etc. ?

   <xsl:template name="xxxxxxx">
      <xsl:variable name="top-anchor">
        <xsl:call-template name="object.id">
          <xsl:with-param name="object" select="/*[1]"/>
        </xsl:call-template>
      </xsl:variable>
      <img src="images/pdfdoc.gif">PDF</img>
    </xsl:template>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:16:42+00:00Added an answer on May 26, 2026 at 6:16 am

    I have found the correct location to insert the code i need.
    In the titlepage.templates.xsl file i found the correct solution. I just taken the snippet from the titlepage.templates.xsl and enhanced it like the following:

    <xsl:template name="book.titlepage.separator">
        <div class="subsubtile">
            <div class="pdflink">
                <a href="./xxxx.pdf" title="Hilfeseite als PDF-Dokument">
                    <img src="images/pdfdoc.gif" border="0" alt="Hilfeseite als PDF-Dokument" />
                    <br />
                    PDF
                </a>
            </div>
        </div>
        <hr/>
    </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple XSL file which looks like: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0>
Have anyone used Redmine Documentor which lets you convert PHP to HTML to Redmine
Have an app that can use tts to read text messages. It can also
I have a Run Script phase on my target that renders a PDF manual.
Have a photography site that I want to prevent image copying from. How can
I'm trying to use ant in a vista 64 environment to build some docbook/xml
Have just started using Visual Studio Professional's built-in unit testing features, which as I
have anyone can tell me what syntax error on this actionscript (actionscript3.0)? var rotY:
I have a multi chapter docbook documentation. It is converted to HTMLHelp with xslproc
Not that it is all that entirely practicle, I have a particular customer that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.