[new XSL] Ready for inputs.

Bruce Dubbs bruce.dubbs at gmail.com
Mon Apr 9 13:19:33 PDT 2007

M.Canales.es wrote:
> El Domingo, 8 de Abril de 2007 23:03, Bruce Dubbs escribió:
>> Manuel,
>>   I pulled the new style sheets from svn.  How do you use them?  Do you
>> just have a temporary symbolic link from the trunk/BOOK/stylesheets to
>> ../../branches/new-xsl/ ?
> I have it in this way:
> $ svn co svn+ssh://USERNAME@linuxfromscratch.org/LFS/trunk/BOOK new-xsl
> $ cd new-xsl/stylesheets
> $ svn switch svn+ssh://USERNAMEl@linuxfromscratch.org/LFS/branches/new-xsl .
> Note the dot in the last line.
> To render the PDF you need to edit the Makefile to change the line
>  sed -i -e "s/inherit/all/" $(BASEDIR)/lfs-pdf.fo
> to
>  sed -i -e 's/span="inherit"/span="all"/' $(BASEDIR)/lfs-pdf.fo
> and be sure that FOP-0.93 is used. I changed the line in the Makefile to read
>  FOP_HOME=~/fop-0,93 && ~/fop-0.93/fop $(BASEDIR)/lfs-pdf.fo \
>              $(BASEDIR)/$(PDF_OUTPUT)
  I'm having trouble getting fop to run.  I installed FOP-0.93:

$ ll -d /opt/f*
lrwxrwxrwx 1 root root    8 Apr  9 14:50 /opt/fop -> fop-0.93
drwxr-xr-x 5 root root 4096 Apr  9 14:50 /opt/fop-0.20.5
drwxr-xr-x 9 root root 4096 Apr  9 14:31 /opt/fop-0.93

I checked out the new-xsl as you specify above

and updated the Makefile:

    xsltproc --xinclude --nonet --output $(BASEDIR)/lfs-pdf.fo \
                stylesheets/lfs-pdf.xsl index.xml
    sed -i -e 's/span="inherit"/span="all"/' $(BASEDIR)/lfs-pdf.fo
    fop $(BASEDIR)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
    rm $(BASEDIR)/lfs-pdf.fo

[bdubbs@~/new-xsl]$ which fop

But I get this:

[bdubbs@~/new-xsl]$ make pdf
xsltproc --xinclude --nonet --output ~/lfs-book/lfs-pdf.fo \
        stylesheets/lfs-pdf.xsl index.xml
xsl:attribute-set : use-attribute-sets recursion detected
Making portrait pages on USletter paper (8.5inx11in)
runtime error: file stylesheets/pdf/lfs-mixed.xsl line 255 element choose
xsl:choose: unexpected content attribute

  [ repeats about a hundred times ]

error: file index.xml
xsltRunStylesheet : run failed
make: *** [pdf] Error 9

I don't see anything wrong with stylesheets/pdf/lfs-mixed.xsl
unless the <xsl:otherwise> on line 271 is out of place.

What am I doing wrong?

  -- Bruce

More information about the lfs-dev mailing list