W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2006

Re: Access Input File Filename from within XSL

From: Jeremias Maerki <dev@jeremias-maerki.ch>
Date: Mon, 06 Nov 2006 15:28:04 +0100
To: www-xsl-fo@w3.org
Message-Id: <20061106152348.6A55.DEV@jeremias-maerki.ch>

Well, you can always set the title for the generated PDF manually. If
you're using Apache FOP 0.92beta or later, you can set the title on the
FOUserAgent.

See:
http://xmlgraphics.apache.org/fop/0.92/embedding.html#user-agent

I assume you know best what the filenames are because FOP may only get a
SAX stream with the XSL-FO and may never know from which XML the
document was derived.

On 02.11.2006 21:45:21 Gregory Jungels wrote:
> Is there a way to access the filename of the input, and for that matter,
> all of the filenames that were used during the FOP run?
> 
>  
> 
> The XML files I am using have automatically generated filenames.  I
> would like to set the Title of my PDF document as whatever the input
> xml's filenamr is.
> 
>  
> 
> Thanks in advance.
> 



Jeremias Maerki
Received on Monday, 6 November 2006 15:19:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:14 GMT