Return-Path: X-Original-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 772C09DAB for ; Tue, 25 Oct 2011 07:48:40 +0000 (UTC) Received: (qmail 259 invoked by uid 500); 25 Oct 2011 07:48:40 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 241 invoked by uid 500); 25 Oct 2011 07:48:40 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 222 invoked by uid 99); 25 Oct 2011 07:48:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 07:48:38 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of med1985@gmail.com designates 209.85.161.182 as permitted sender) Received: from [209.85.161.182] (HELO mail-gx0-f182.google.com) (209.85.161.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 07:48:31 +0000 Received: by ggnq2 with SMTP id q2so362274ggn.27 for ; Tue, 25 Oct 2011 00:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qwTL6L6Xi3JU1a9yR1FT6dSqB/hSeIKSEl6S2TCryEU=; b=WENM3hMOinQBm68bjTy5pgKH9OVsEglJU27SgaB1OkMNrgXpkC0kPSeKU4wWWLaJ50 +tIep2ZN4FxHjxd/xsAGyIUcL+RA7enao3kI7Ewtj6t2MuDPZm+GaqB0hHG/TYsc4G5H y7gOcfcY7nyi4EY9wO5DJMnSdsWWz6G2SKk78= MIME-Version: 1.0 Received: by 10.68.15.201 with SMTP id z9mr55137841pbc.36.1319528889903; Tue, 25 Oct 2011 00:48:09 -0700 (PDT) Received: by 10.142.180.10 with HTTP; Tue, 25 Oct 2011 00:48:09 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Oct 2011 08:48:09 +0100 Message-ID: Subject: Re: Default XSL Stylesheet for PDF? From: mehdi houshmand To: fop-users@xmlgraphics.apache.org, noloader@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jeff, FOP is an FO processor, as such it takes FO as input, not XML (even though FO is XML, XML isn't FO). You need to make sure your input is valid FO, then either use the -fo parameter or no parameter since it's the FOPs primary input. If you were curious the -xml input is used in conjunction with an XSLT (thus the -xsl parameter) to transform said XML file to FO. There is no "default" PDF stylesheet, this mechanism is merely a helper since a lot of users create FO using a transform. So assuming your book.xml is valid FO, the command would look like: $oreilly-handbook$ fop book.xml -pdf book.pdf Hope that helps Mehdi On 25 October 2011 08:37, Jeffrey Walton wrote: > Hi All, > > I'm working on Ubuntu 10.04 (x64). I installed the FOP package, and > now trying to create a PDF from O'Reilly's DocBook sample at > https://prod.oreilly.com/external/tools/docbook/docs/authoring/docbook_source/. > > $oreilly-handbook$ fop -xml book.xml -pdf book.pdf > > results in an exception: > > Oct 25, 2011 3:34:41 AM org.apache.fop.cli.Main startFOP > SEVERE: Exception > org.apache.fop.apps.FOPException: XSLT file must be specified for the > transform mode > > I believe i need to add `-xsl `. But I don't know what the > default stylesheet is. > > Would anyone be able to point out the default PDF stylesheet? > > Thanks in advance, > Jeff > > --------------------------------------------------------------------- > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org