This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: docbook.xsl VS chunk.xsl (xalan problems!)


Sorry if these instructions are a bit verbose, they are straight out of my
tutorial (which is not available on the Internet yet)
For windows:

The files you will need are available from
http://www.fh-frankfurt.de/~igor/projects/libxml/index.html

You will need to download:

The latest libxml download, at the time of writing:
http://www.fh-frankfurt.de/~igor/projects/libxml/libxml2-2.4.22.win32.zip

The latest libxslt download, at the time of writing:
http://www.fh-frankfurt.de/~igor/projects/libxml/libxslt-1.0.18.win32.zip

The latest iconv download, at the time of writing:
http://www.fh-frankfurt.de/~igor/projects/libxml/iconv-1.8.win32.zip

Extract the following files from the libxml

C:\docbook\xsltproc\    (or whatever)

libxml2.dll
xmllint.exe

Extract the following files from the libxslt archive and place in

C:\docbook\xsltproc\ (or whatever)

libexslt.dll
libxslt.dll
xsltproc.dll

Extract the following files from the iconv archive and place in

C:\docbook\xsltproc\  (or whatever)

iconv.dll

Finally, append C:\docbook\xsltproc\ (or whatever) to the PATH environment
variable.

For solaris you can get the files here:
http://garypennington.net/libxml2/

For other Unices:
ftp://xmlsoft.org/

The official download page:
http://garypennington.net/libxml2/

Ok, I think thats everything.

----- Original Message -----
From: "Th Templ" <templ_th@hotmail.com>
To: <vnhu38f93@subdimension.com>; <molloyda@eeng.dcu.ie>;
<docbook@lists.oasis-open.org>
Sent: Friday, July 05, 2002 9:23 AM
Subject: Re: DOCBOOK: docbook.xsl VS chunk.xsl (xalan problems!)


> I am open to all applications. I will test it but where can I find it...
> Thanks
> Templth
>
>
> >Why not use xsltproc to generate xhtml chunked, the output is much
better,
> >e.g
> >
> >xsltproc     file:///path/to/docbook-xsl/xhtml/chunk.xsl       in.xml
> >
> >This will produce a set of html files that are named sensibly such as:
> >
> >index.html
> >
> >ar01s02.html
> >
> >and
> >
> >ar01s03.html
> >
> >
> >
> >----- Original Message -----
> >From: "Th Templ" <templ_th@hotmail.com>
> >To: <molloyda@eeng.dcu.ie>; <docbook@lists.oasis-open.org>
> >Sent: Friday, July 05, 2002 8:15 AM
> >Subject: Re: DOCBOOK: docbook.xsl VS chunk.xsl (xalan problems!)
> >
> >
> > > Hello,
> > >
> > > I use Saxon as xslt processor and it works fine. I use as xsl entry
file
> > > chunk.xsl because it generates several separate html files...
> > > I use ant to execute the conversion. Here is the specific lines of my
> > > build.xml:
> > >
> > > (...)
> > >
> > > <property name="saxon.dir" value="${basedir}/src/lib/"/>
> > > <property name="docbook.xsl.dir" value="${basedir}/src/docbookxsl"/>
> > >
> > > (...)
> > >
> > > <java classname="com.icl.saxon.StyleSheet"
> > >        dir="${html.dir}"
> > >        fork="true"
> > >        failonerror="true"
> > >        maxmemory="128m">
> > >    <arg value="${src.xml.dir}/doc.xml"/>
> > >    <arg value="${docbook.xsl.dir}/xhtml/chunk.xsl"/>
> > >    <classpath>
> > >       <pathelement location="${saxon.dir}/saxon.jar"/>
> > >       <pathelement path="${java.class.path}"/>
> > >    </classpath>
> > > </java>
> > >
> > > (...)
> > >
> > > Templth
> > >
> > > >From: David Molloy <molloyda@eeng.dcu.ie>
> > > >Reply-To: molloyda@eeng.dcu.ie
> > > >To: docbook@lists.oasis-open.org
> > > >Subject: DOCBOOK: docbook.xsl    VS    chunk.xsl    (xalan problems!)
> > > >Date: Thu, 04 Jul 2002 17:53:24 +0100
> > > >
> > > >Hi,
> > > >    I've been using docbook lately for writing some notes and
> > > >I really want to get them into multiple files rather than one
> > > >single cumbersome file.  Anyway, I tried using chunk.xsl
> > > >instead of docbook.xsl (which was working fine!) by entering
> > > >the xalan directory and typing:
> > > >
> > > >java -cp
> > >
> >
>bin/xalan.jar;bin/xercesImpl.jar;bin/runtime.jar;bin/xsltc.jar;bin/xml-apis
> >.
> > > >jar org.apache.xalan.xslt.Process -IN D:\EE557\notes\EE557.xml -PARAM

> > > >xalan.extensions 1 -XSL ../dbookxsl/html/chunk.xsl -OUT
> > > >D:\EE557\notes\index.html
> > > >
> > > >However, using chunk.xsl I now get back:
> > > >(Location of error unknown)XSLT Error
> > > >(javax.xml.transform.TransformerConfigurationException):
> > > >java.xml.transform.TransformerException:
> > > >java.lang.ArrayIndexOutOfBoundsException
> > > >
> > > >Could anyone please clarify to me what is going on please?  And if
> >possible
> > > >a suggestion as to how to fix it please!
> > > >Thanks in advance,
> > > >
> > > >David Molloy
> > > >
> > > >
> > > >More details:
> > > >JDK - tried jdk1.4.0, jdk1.3.1, jdk1.2.2 - identical problem for each
> > > >Xalan_Java 2
> > > >Windows 2k
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> > >
> >
>
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]