[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: saxon 6.5 not working with textinsert.extension
Platform: Intel PIII, RedHat 7.2, JDK 1.3.1, Saxon 6.5-1mdk (from the Mandrake Cooker distribution), DocBook 4.1.2, DocBook-XSL 1.48 (example files attached at the end) I am trying to include example text from a separate file, into a docbook file. When searching the net for how to do this, I found the following mail article: <http://lists.oasis-open.org/archives/docbook/200105/msg00047.html> Short summary is: 1. use <inlinemediaobject> <imageobject> <imagedata format="linespecific" fileref="filename"/> </imageobject> </inlinemediaobject> to include a file 2. set the following extensions supported by saxon and xalan <xsl:param name="use.extensions" select="'1'" /> <xsl:param name="textinsert.extension" select="'1'" /> When I do this, I get error messages both when generating HTML and FO: cd /home/sba/tmp/docinclude/ make -k saxonbatch -o testdoc.html testdoc.xml local-html.xsl No insertfile extension available. Processing terminated by xsl:message at line 264 make: *** [testdoc.html] Error 1 Fop testdoc.fo testdoc.pdf [INFO]: FOP 0.20.3rc [INFO]: building formatting object tree [ERROR]: Error in column-width property value '33%': org.apache.fop.fo.expr.PropertyException: No conversion defined [ERROR]: Error in column-width property value '33%': org.apache.fop.fo.expr.PropertyException: No conversion defined [ERROR]: Error in column-width property value '33%': org.apache.fop.fo.expr.PropertyException: No conversion defined [WARN]: property - "last-line-end-indent" is not implemented yet. [WARN]: property - "last-line-end-indent" is not implemented yet. [ERROR]: The element type "fo:block" must be terminated by the matching end-tag "</fo:block>". make: Target `all' not remade because of errors. Compilation exited abnormally with code 2 at Wed Feb 13 12:04:26 - Steinar
Build PDF and HTML from DocBook XML
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://no-video2/xml/dtds/docbook4.1.2/docbookx.dtd" []> <?xml-stylesheet type="text/css" href="http://no-video2/xml/styles/docbook.css"?> <?xml-stylesheet href="http://no-video2/xml/styles/docbook-xsl-1.48/html/docbook.xsl" type="text/xsl"?> <article> <title>Portal Libraries</title> <articleinfo> <revhistory> <revision> <revnumber>0.1</revnumber> <date>February 12, 2002</date> </revision> </revhistory> </articleinfo> <section> <title>Intro</title> <para>Some dummy text.</para> <para> Some more dummy text. </para> <para> The details and example code are described in the following subsections. </para> <programlisting format="linespecific"> <inlinemediaobject> <imageobject> <imagedata fileref="a.txt" format="linespecific"/> </imageobject> </inlinemediaobject> </programlisting> </section> <section id="nextsec"> <title>The next section</title> <para> Some more meaningless text. </para> </section> </article>
#include <iostream> #include <string> main(int argc, char* argv[]) { string world = "World"; if (argc > 1) { world = argv[1]; } cout << "Hello " << world << "!" << endl; }
<?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns="http://www.w3.org/TR/xhtml1/transitional" exclude-result-prefixes="#default"> <!-- Changes to defaults --> <xsl:param name="use.extensions" select="'1'" /> <xsl:param name="textinsert.extension" select="'1'" /> </xsl:stylesheet>
<?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns="http://www.w3.org/TR/xhtml1/transitional" exclude-result-prefixes="#default"> <xsl:import href="http://no-video2/xml/styles/docbook-xsl-1.48/html/docbook.xsl"/> <xsl:import href="local-common.xsl"/> <!-- Changes to defaults --> </xsl:stylesheet>
<?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xmlns="http://www.w3.org/TR/xhtml1/transitional" exclude-result-prefixes="#default"> <xsl:import href="http://no-video2/xml/styles/docbook-xsl-1.48/fo/docbook.xsl"/> <xsl:import href="local-common.xsl"/> <!-- Changes to defaults --> <xsl:param name="paper.type" select="'A4'" /> </xsl:stylesheet>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC