List Info

Thread: External code files (using Xalan)




External code files (using Xalan)
user name
2007-06-26 13:15:13
Hi,

I am having a little trouble getting external code files
included.
I am following the instructions as documented here: 
http://www.sagehill.net/docbookxsl/ExternalCode.html

but I am not having any luck: the file is not being found.

My docbook file contains this:

 <textobject><textdata
fileref="codesample.txt" /></textobject>

My commandline is this (Windows):

 "C:Program FilesJavajre1.6.0_01binjava" -cp
"C:DocBookfop-0.93buildfop.jar;C:DocBookfop-0.93
libxalan-2.7.0.jar;C:DocBook
fop-0.93libxml-apis-1.3.02.jar;C:DocBookfop-0.93libxe
rcesImpl-2.7.1.jar;C:DocBookdocbook-xsl-1.72.0extensions
xalan27.jar" -Djava.
endorsed.dirs="C:DocBookfop-0.93lib"
org.apache.xalan.xslt.Process -in
"D:_1Personal_ProjectsGroovydoctest.xml" -out
"test.html" -xs
l "C:DocBookdocbook-xsl-1.72.0htmldocbook.xsl"
 -param use.extensions 1 -param textinsert.extension 1

The output says: Cannot read codesample.txt
This file is in the same directory as the docbook file.

 How do I get the command to locate the file? Where is it
actually looking?

Thanks,
Mike




       
____________________________________________________________
________________________
Be a better Globetrotter. Get better travel answers from
someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=3965454
69

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: External code files (using Xalan)
user name
2007-06-26 13:44:41
Mike M wrote:

> My commandline is this (Windows):
> 
>  "C:Program FilesJavajre1.6.0_01binjava"
-cp
"C:DocBookfop-0.93buildfop.jar;C:DocBookfop-0.93
libxalan-2.7.0.jar;C:DocBook
>
fop-0.93libxml-apis-1.3.02.jar;C:DocBookfop-0.93libxe
rcesImpl-2.7.1.jar;C:DocBookdocbook-xsl-1.72.0extensions
xalan27.jar" -Djava.
> endorsed.dirs="C:DocBookfop-0.93lib"
org.apache.xalan.xslt.Process -in
"D:_1Personal_ProjectsGroovydoctest.xml" -out
"test.html" -xs
> l
"C:DocBookdocbook-xsl-1.72.0htmldocbook.xsl" 
-param use.extensions 1 -param textinsert.extension 1
> 
> The output says: Cannot read codesample.txt
> This file is in the same directory as the docbook
file.
> 
>  How do I get the command to locate the file? Where is
it actually looking?

It is very likely that file is expected in the current
working
directory. It is usually better to invoke transformation in
directory
with your files and then specify DocBook source by relative
path, in
your particular case by using -in test.xml parameter.

-- 
------------------------------------------------------------
------
  Jirka Kosek      e-mail: jirkakosek.cz      http://xmlguru.cz
------------------------------------------------------------
------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document
processing
------------------------------------------------------------
------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34
member
------------------------------------------------------------
------
Be in, register for XML Prague 2007 today! http://www.xmlprague.cz

RE: External code files (using Xalan)
user name
2007-06-27 08:13:22
> -----Original Message-----
> From: Mike M
> 
> I am having a little trouble getting external code
files included.
> I am following the instructions as documented here: 
> 
http://www.sagehill.net/docbookxsl/ExternalCode.html

[...]
 
> The output says: Cannot read codesample.txt
> This file is in the same directory as the docbook
file.


I have checked in a modification for the Xalan extension
that might help
(but no promises...).

There will soon be a 1.73.0 stylesheet release, where the
fix is included.
It is not included in the latest snapshot (that is by design
as far as I
know; the release/snapshot build system is currently being
reorganized).

Mauritz



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: External code files (using Xalan)
user name
2007-07-23 04:48:08
Mauritz Jeanson <mjjohanneberg.com>, 2007-06-27 15:13
+0200:

> > -----Original Message-----
> > From: Mike M
> > 
> > I am having a little trouble getting external code
files included.
> > I am following the instructions as documented
here: 
> > 
http://www.sagehill.net/docbookxsl/ExternalCode.html
> 
> [...]
>  
> > The output says: Cannot read codesample.txt
> > This file is in the same directory as the docbook
file.
> 
> I have checked in a modification for the Xalan
extension that might help
> (but no promises...).
> 
> There will soon be a 1.73.0 stylesheet release, where
the fix is included.
> It is not included in the latest snapshot (that is by
design as far as I
> know; the release/snapshot build system is currently
being reorganized).

The 1.73.0 release is available, and includes the fix that
Mauritz
made for this.

  --Mike
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )