You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Files <fi...@poetryunlimited.com> on 2003/09/22 02:29:31 UTC
fop.sh - does it exist?
What the heck is it and where do I find it???
I can find /usr/share/sgml/docbook/xsl-stylesheets/fo/fop.xsl but I find
no fop.sh.
Any ideas on what the RUN_FOP command should REALLY do?
doc/book/Makefile contains a search for fop.sh, but I don't know what
the parameters are that should be passed.
Who is in charge of this???
Thanks. :)
Shamim Islam
BA BS
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: fop.sh - does it exist?
Posted by Files <fi...@poetryunlimited.com>.
Yeah, actually, that's how I got hold of the xsl - from the readme -
figured out what RPM I needed based on the filename.
I wasn't sure what the fop stuff was all about because I had seen a
fop.xsl in the docbook files, so I *crossed my finger* and hoped I
didn't have to install yet something else.
Btw, when I go get a fop RPM, it asks for
avalon-logkit
batik >= 0:1.5
jpackage-utils >= 0:1.5
So I was attmepting to find a short cut. Guess there isn't one and I'll
have to bite the bullet and install all of those to do a stock build.
Guess that's yet something else to add toe the Mandrake requirements if
you want documentation in PDF or whatever.
Btw, I did see the README.
I was seriously trying to avoid just piling on random tarballs.
Seeing as this package manager thing is what I'm trying to build. :)
But I do appreciate the heads-up. :-)
Shamim Islam
BA BS
On Sun, 2003-09-21 at 23:24, sussman@collab.net wrote:
> > Who is in charge of this???
>
> Did you bother to read the gigantic README file sitting in doc/book/ ?
>
> It explains everything: what xslt is, what fop is, and how to set things
> up so you can compile the book.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: fop.sh - does it exist?
Posted by su...@collab.net.
> Who is in charge of this???
Did you bother to read the gigantic README file sitting in doc/book/ ?
It explains everything: what xslt is, what fop is, and how to set things
up so you can compile the book.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: fop.sh - does it exist?
Posted by Daniel Patterson <da...@adaptiveinternational.com>.
On Mon, 2003-09-22 at 12:51, Files wrote:
> Daniel, does it do anything different than fop.xsl - that's from the
> apache xml project too.
Yes, it does.
You use an XSLT processor to convert the Docbook XML into XML-FO
(http://www.w3.org/TR/xsl/). XSL-FO is an XML structure that
describes how a document should look on paper (i.e. the FO document
is the "presentation" version of the "structure-only" book.xml).
You then use Jakarta FOP (fop.sh) to convert the XML-FO XML data into
a PDF (or RTF, or whatever other outputs FOP supports).
daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: fop.sh - does it exist?
Posted by Files <fi...@poetryunlimited.com>.
Daniel, does it do anything different than fop.xsl - that's from the
apache xml project too.
Or do I have to mess up my Mandrake install w/ this thing that claims
lives and salaries? lol
Shamim Islam
BA BS
-----------------------------------------------------------------------
fop.xsl file follows:
<?xml version='1.0' encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xml.apache.org/fop/extensions"
version='1.0'>
<!--
********************************************************************
$Id: fop.xsl,v 1.9 2003/06/03 09:50:41 nwalsh Exp $
********************************************************************
(c) Stephane Bline Peregrine Systems 2001
Driver file to allow pdf bookmarking (based on fop implementation).
******************************************************************** -->
<!--
In PDF bookmarks can't be used characters with code>255. This version of
file
translates characters with code>255 back to ASCII.
Pavel Zampach (zampach@volny.cz)
-->
<xsl:variable name="a-dia" select=
"'āăąćĉċčďđēĕėęěœĝğġģĥħĩīĭįıĵķĺļľŀłńņňŋōŏőŕŗřśŝşšţťŧũūŭůűųŵŷźżžĀĂĄĆĈĊČĎĐĒĔĖĘĚŒĜĞĠĢĤĦĨĪĬĮİĴĶĹĻĽĿŁŃŅŇŊŌŎŐŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽ'"/>
<xsl:variable name="a-asc" select=
"'aaaccccddeeeeeegggghhiiiiijklllllnnnnooorrrsssstttuuuuuuwyzzzAAACCCCDDEEEEEEGGGGHHIIIIIJKLLLLLNNNNOOORRRSSSSTTTUUUUUUWYYZZZ'"/>
<xsl:template match="*" mode="fop.outline">
<xsl:apply-templates select="*" mode="fop.outline"/>
</xsl:template>
<xsl:template
match="set|book|part|reference|preface|chapter|appendix|article
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section"
mode="fop.outline">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:variable name="bookmark-label">
<xsl:apply-templates select="." mode="object.title.markup"/>
</xsl:variable>
<!-- Put the root element bookmark at the same level as its children
-->
<!-- If the object is a set or book, generate a bookmark for the toc
-->
<xsl:choose>
<xsl:when test="parent::*">
<fox:outline internal-destination="{$id}">
<fox:label>
<xsl:value-of
select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
</fox:label>
<xsl:apply-templates select="*" mode="fop.outline"/>
</fox:outline>
</xsl:when>
<xsl:otherwise>
<fox:outline internal-destination="{$id}">
<fox:label>
<xsl:value-of
select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
</fox:label>
</fox:outline>
<xsl:variable name="toc.params">
<xsl:call-template name="find.path.params">
<xsl:with-param name="table"
select="normalize-space($generate.toc)"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($toc.params, 'toc')
and
(book|part|reference|preface|chapter|appendix|article
|glossary|bibliography|index|setindex
|refentry
|sect1|sect2|sect3|sect4|sect5|section)">
<fox:outline internal-destination="toc...{$id}">
<fox:label>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'TableofContents'"/>
</xsl:call-template>
</fox:label>
</fox:outline>
</xsl:if>
<xsl:apply-templates select="*" mode="fop.outline"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
On Sun, 2003-09-21 at 22:37, Daniel Patterson wrote:
> On Mon, 2003-09-22 at 12:29, Files wrote:
> > What the heck is it and where do I find it???
> >
> > I can find /usr/share/sgml/docbook/xsl-stylesheets/fo/fop.xsl but I find
> > no fop.sh.
> >
> > Any ideas on what the RUN_FOP command should REALLY do?
>
> FOP is an XSL-FO to PDF convertor from the Apache group. Get
> it here:
>
> http://xml.apache.org/fop/index.html
>
> It's written in Java, so you'll need a JVM to run it. The "fop.sh"
> wrapper is a simplified command-line interface for rendering XSL-FO
> XML documents into PDF.
>
> If you're running Debian, get it with:
>
> apt-get install libfop-java
>
> which contains the "fop.sh" wrapper.
>
> daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: fop.sh - does it exist?
Posted by Daniel Patterson <da...@adaptiveinternational.com>.
On Mon, 2003-09-22 at 12:29, Files wrote:
> What the heck is it and where do I find it???
>
> I can find /usr/share/sgml/docbook/xsl-stylesheets/fo/fop.xsl but I find
> no fop.sh.
>
> Any ideas on what the RUN_FOP command should REALLY do?
FOP is an XSL-FO to PDF convertor from the Apache group. Get
it here:
http://xml.apache.org/fop/index.html
It's written in Java, so you'll need a JVM to run it. The "fop.sh"
wrapper is a simplified command-line interface for rendering XSL-FO
XML documents into PDF.
If you're running Debian, get it with:
apt-get install libfop-java
which contains the "fop.sh" wrapper.
daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org