You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Robert P. J. Day" <rp...@mindspring.com> on 2003/04/13 14:44:25 UTC

docbook, xmlto, FOP and hyuphenation

  i figured i'd explain this once in its entirety to find
out just what part of this i'm missing.

  i want to use red hat's "xmlto" utility and FOP to process
docbook into PDF.  if you're familiar with xmlto (or even if
you're not), the basic invocation is

  $ xmlto {fo,ps,dvi,...} -m frag1 -m frag2 ... dbfile.xml

the "-m" fragments represent stylesheet fragments which will
automatically be added to a final stylesheet as "include"s,
so you don't have to build your own all-encompassing
stylesheet.  in a nutshell, "xmlto" will automatically
select the appropriate fundamental stylesheet, and then
create a temporary with references to all of your fragments
being <xsl:include>d.  this just takes all the work off of
you.

  it also means that any overrides you'd like to add
must be able to be added as official stylesheet fragments,
which will override "param"s or attribute-sets.  as an
example, consider the following stylesheet fragment:

------------------------------------

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                version='1.0'>

<!-- This sets the extension for HTML files to ".html".     -->
<!-- (The stylesheet's default for XHTML files is ".xhtm".) -->
<xsl:param name="html.ext" select="'.html'"/>

<!-- This sets the filename based on the ID.                -->
<xsl:param name="use.id.as.filename" select="'1'"/>

</xsl:stylesheet>

------------------------------------

  so i can override any property which is set by an
xsl:param.  if you look at norm walsh's FO Parameter
Reference at:

http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html

in Section XVII, there is a parameter for hyphenate -- true
or false.  so i can define whether i want hyphenation or not
with a single stylesheet fragment.  but there's no parameter
which specifies hyphenation *country* as far as i can see.
so, at the moment, i don't see how to use this technique
to specify that i want my hyphenation country to be "en_GB"
using this technique.

 am i making any sense here?

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: docbook, xmlto, FOP and hyuphenation

Posted by "Robert P. J. Day" <rp...@mindspring.com>.
On Mon, 14 Apr 2003, Togan Muftuoglu wrote:

> * Robert P. J. Day; <rp...@mindspring.com> on 13 Apr, 2003 wrote:
> >with a single stylesheet fragment.  but there's no parameter
> >which specifies hyphenation *country* as far as i can see.
> >so, at the moment, i don't see how to use this technique
> >to specify that i want my hyphenation country to be "en_GB"
> >using this technique.
> use of the following parameter in your customization
> 
> <xsl:param name="l10n.gentext.default.language" select="'en_GB'"/>
> 
> will do the trick 

ironic that i finally took the time to scan the entire list
of FO parms, and that language stuff was *right* down at the
bottom, while i was looking around where the "hyphenate"
parm was.  that will teach me to keep reading.  thanks,
i'll test that shortly.

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: docbook, xmlto, FOP and hyuphenation

Posted by Togan Muftuoglu <to...@users.sourceforge.net>.
* Robert P. J. Day; <rp...@mindspring.com> on 13 Apr, 2003 wrote:
>with a single stylesheet fragment.  but there's no parameter
>which specifies hyphenation *country* as far as i can see.
>so, at the moment, i don't see how to use this technique
>to specify that i want my hyphenation country to be "en_GB"
>using this technique.
use of the following parameter in your customization

<xsl:param name="l10n.gentext.default.language" select="'en_GB'"/>

will do the trick 
-- 

Togan Muftuoglu


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org