(or you could use the equivalent command line structures in
ant
without using the xslt task, this would make it easier to
put in your
build file, but possibly more error prone)
On 5/18/07, Chris Chiasson <chris chiasson.name> wrote:
> You may need to change the parser that ant is using.
There are some
> references in this thread from when Mauritz Jeanson
helped me do
> something similar:
>
> http://www.oasis-open.org/archives/docbook-a
pps/200609/msg00075.html
>
> (note this uses the command line syntax - you will have
to translate
> it into the appropriate ant xml (not easy))
>
> On 5/18/07, Markus Innerebner <markus innerebner.net> wrote:
> > Hello
> >
> > I am trying to use xinclude in my docbook. But I
have following problem.
> > I am starting the converting via ant with the
target xslt as following:
> >
> > <target name="dbk2fo"
description="Converts docbook xml to fo">
> > <xslt
in="${properties.docbook.file}"
> > out="${properties.docbook.foFile}"
> >
style="${properties.docbook.foStylesheet}"/>
> > </target>
> >
> > Than I have a file Introduction.xml that should be
include in the main
> > document, called Article.xml with following
format>
> >
> > <?xml version="1.0"
encoding="UTF-8"?>
> > <article
> > xmlns s=&qu
ot;http://www.w3.
org/2001/XMLSchema"
> > xmlns i=&qu
ot;http://www.w3.o
rg/2001/XInclude"
> > xmlns="http://docbook.or
g/ns/docbook"
> > xmlns link=
"http://www.w3.org/
1999/xlink"
> > xmlns si=&q
uot;http:
//www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://www.w3.org/200
1/XInclude ../../xinclude.xsd
> > http://docbook.org/ns/d
ocbook
> > /data/schemas/xml-schema/docbook/docbook.xsd
> > http://www.w3.org/1999/x
link /data/schemas/xml-schema/docbook/xlink.xsd
> > http://www.w3.or
g/XML/1998/namespace
> >
/data/schemas/xml-schema/docbook/xml.xsd">
> > <title>A System Description of a
Spatio-temporal Application</title>
> > <info>
> > <title>ACM GIS paper</title>
> > <abstract>
> > <para
annotations="Motivation">
> > Some text ....
> > </para>
> > </abstract>
> > </info>
> > <section>
> > <xi:include
href="Introduction.xml"
> > xmlns i=&qu
ot;http://www.
w3.org/2001/XInclude">
> > <xi:fallback>
> > <para><emphasis>File
Introduction.xml not found!!!
> > </emphasis></para>
> > </xi:fallback>
> > </xi:include>
> > </section>
> > </article>
> >
> >
> > The file Introduction.xml has following content:
> > <?xml version="1.0"
encoding="UTF-8"?>
> > <section xmlns="http://docboo
k.org/ns/docbook">
> > <title>Introduction</title>
> > <para annotations="Motivation">
> > Some other text .....
> > </para>
> > </section>
> >
> > When I am launching the ant I get following error
message:
> > dbk2fo:
> > [xslt] Processing
> >
/data/dev/uni/workspaces/Bz10mServer/docs/systemDescription/
Article.xml
> > to
/data/dev/uni/workspaces/Bz10mServer/out/Article.xml
> > [xslt] Loading stylesheet
> >
/data/dev/uni/workspaces/Bz10mServer/conf/xslt/docbook-xsl/f
o/docbook.xsl
> > [xslt] Stripping namespace from DocBook 5
document.
> > [xslt] Making portrait pages on A4 paper
(210mmx297mm)
> > [xslt] xi:include encountered in section, but
no template matches.
> > [xslt] xi:fallback encountered in xi:include,
but no template matches.
> >
> > Do I need to add something in the parameter of the
ant task?
> >
> >
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
docbook-apps-unsubscribe lists.oasis-open.org
> > For additional commands, e-mail:
docbook-apps-help lists.oasis-open.org
> >
> >
>
>
> --
> http://chris.chiasson.nam
e/
>
--
http://chris.chiasson.nam
e/
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|