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://[EMAIL PROTECTED]/LFS/trunk/BOOK new-xsl
> $ cd new-xsl/stylesheets
> $ svn switch svn+ssh://[EMAIL PROTECTED]/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)
>
Manuel,
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:
pdf:
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
[EMAIL PROTECTED]/new-xsl]$ which fop
/opt/fop/fop
But I get this:
[EMAIL PROTECTED]/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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page