xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25248] New: - XSL Parameter passing
Date Fri, 05 Dec 2003 16:45:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25248>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25248

XSL Parameter passing

           Summary: XSL Parameter passing
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: florian.saller@web.de


I would be very helpful, if Apache FOP could handle XSL parameters (like 
XALAN's -PARAM attribute). I have some stylesheets with params, I'd like to 
process directly calling FOP without double handling (Transforming the XSL 
Stylesheet with XALAN first and pass the result to FOP):

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:n1="http://www.agere.com/qm/process" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<xsl:param name="base.dir" select="'.'"/>	
	<xsl:param name="logo" select="concat($base.dir,'/','agere_logo.jpg')"/>
...

The primitive call/usage could be something like this (copied from XALAN 
syntax):

java org.apache.fop.apps.Fop -xml xmlfile.xml -xsl xslfile.xsl -pdf 
pdffile.pdf -param base.dir "C:/base/dir"

Mime
View raw message