Hi Daniel,
Yes, it won't work for PDF because the PDF is not generated by the XSL 
stylesheet, but by the XSL-FO  processor working on the FO output of the 
stylesheet.  Placement of the PDF has to be done by the script that runs the 
process.  Using the XSL processor's -o option in the script can do that, as 
Peter mentioned.

The XSL could be customized to output the FO using the same mechanism as for 
HTML output, but the XSL could not run the XSL-FO  processor to complete the 
PDF.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


  ----- Original Message ----- 
  From: daniel.ke...@finaris.de 
  To: docbook-apps@lists.oasis-open.org 
  Sent: Monday, February 27, 2012 3:10 AM
  Subject: [docbook-apps] Preparing a stylesheet for HTML and PDF Output/ 
Stating the base.dir for HTML and PDF: How can you define the base.dir PDF, 
using the same relative path as used for HTML


  Hey, 



  Currently we are finalizing our HTML stylesheet for DocBook. Since our 
documents are to be released as HTML and PDF and our documentation consists of 
about 20 different documents with more than 1000 pages total, we need to find a 
way to state a relative path in our stylesheet as the base.dir that will work 
out for both. We do not want to store all files, PDF and HTML, in the same 
folder. What we need is a nice and easy way to define where the output is to be 
stored. 

  For HTML we used <xsl:param name="base.dir" 
select="concat($webhelp.base.dir,'/content/')"/>. 
  This won´t work for PDF. 

  We had a similar problem with the role attribute regarding screenshots that 
had to be scaled differently according if we had a PDF or HTML output , but we 
managed to define "when to use what". 

  Is there any solution for our problem? 









  Greetings, 

  Daniel Keyes 




  =======================================================
  Disclaimer
  The information contained in this e - mail and any attachments
  ( together the "message") is intended for the addressee only and may 
  contain confidential and/or privileged information. If you have received
  the message by mistake please delete it and notify the sender and do
  not copy or distribute it or disclose its contents to anyone.

  FINARIS Financial Software Partner GmbH
  Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
  Registered at Frankfurt/Main, HRB 52873

  Managing Directors: 
  Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
  =======================================================

Reply via email to