List Info

Thread: Saxon and linenumbering




Saxon and linenumbering
user name
2007-05-01 07:53:51
Hi,

I have done searches and already read
http://www.oasis-open.org/archives/docbook-
apps/200406/msg00101.html.

However in my case linenumbering does not work, despite
saxon
extension. I know saxon extension works because I use it to
add
callouts and callouts need it. Here is what is working for
callouts :

    java -jar ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
programlistingco.xml
~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1 callouts.extension=1
>programlistingco.html

Saxon.jar is 6.5.5 version

However if I try :

    java ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
linenumbering.xml
~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
linenumbering.extension=1 >linenumbering.html

I get :

No numberLines function available.
Processing terminated by xsl:message at line 283

saxon extension used in CLASSPATH is :

    ~/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar

Thierry B.

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


Re: Saxon and linenumbering
user name
2007-05-01 09:36:01
On 5/1/07, Thierry Bothorel <thierry.bothorelgmail.com> wrote:
>     java ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
linenumbering.xml
> ~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
> linenumbering.extension=1 >linenumbering.html
>
> I get :
>
> No numberLines function available.
> Processing terminated by xsl:message at line 283
>
> saxon extension used in CLASSPATH is :
>
>    
~/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar

Hi,

Using the -jar flag causes the java command to ignore the
current
CLASSPATH. What happens if you start Saxon as
 java  com.icl.saxon.StyleSheet ...

?


HTH,
Keith

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


Re: Saxon and linenumbering
user name
2007-05-01 10:42:41
2007/5/1, Keith Fahlgren <abdelazergmail.com>:
> On 5/1/07, Thierry Bothorel <thierry.bothorelgmail.com> wrote:
> >     java ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
linenumbering.xml
> > ~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
> > linenumbering.extension=1 >linenumbering.html
> >
> > I get :
> >
> > No numberLines function available.
> > Processing terminated by xsl:message at line 283
> >
> > saxon extension used in CLASSPATH is :
> >
> >    
~/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar
>
> Hi,
>
> Using the -jar flag causes the java command to ignore
the current
> CLASSPATH. What happens if you start Saxon as
>  java  com.icl.saxon.StyleSheet ...
>
> ?

Uhm, here is the otput (never used like that) :

    java com.icl.saxon.StyleSheet linenumbering.xml
~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
linenumbering.extension=1 >linenumbering.html
Exception in thread "main"
java.lang.NoClassDefFoundError:
com/icl/saxon/StyleSheet

For the CLASSPATH issue with -jar, I already tried :

   java  -classpath
~/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar:~/loca
l/lib/xxe-std-3_5_2/bin/saxon.jar:
-jar ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
linenumbering.xml
~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
linenumbering.extension=1 >linenumbering.html

with the same result

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


RE: Saxon and linenumbering
user name
2007-05-01 12:41:34
> -----Original Message-----
> From: Thierry Bothorel 
> 
> Uhm, here is the otput (never used like that) :
> 
>     java com.icl.saxon.StyleSheet linenumbering.xml
> ~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
> linenumbering.extension=1 >linenumbering.html
> Exception in thread "main"
java.lang.NoClassDefFoundError:
> com/icl/saxon/StyleSheet
> 
> For the CLASSPATH issue with -jar, I already tried :
> 
>    java  -classpath
>
~/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar:~/loca
l/
> lib/xxe-std-3_5_2/bin/saxon.jar:
> -jar ~/local/lib/xxe-std-3_5_2/bin/saxon.jar
linenumbering.xml
> ~/local/lib/docbook-xsl-1.72.0/xhtml/docbook.xsl
use.extensions=1
> linenumbering.extension=1 >linenumbering.html
> 
> with the same result


Don't use the -jar option. Either set the CLASSPATH
environment variable (to
contain both saxon.jar and saxon65.jar), or use the
-classpath option. In
both cases, supply the full name of the main class, as in
your first command
line example above.

See also http://saxon.sourceforge.net/saxon6.5.5/index.htm
l#Installation

/MJ




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


[1-4]

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