Subject:help needed - using saxon throw java Author:Yair Razin Date:08 Apr 2008 07:13 AM
hi everyone,
I am using xslt transformers to transform xml docs with saxon and throw java. I am using them for a couple of months now and I did not have any problems.
yesterday I tried adding some java code to the transformer.
I added
xmlns:urlD="java:java.net.URLDecoder"
in the template tag, and later in value-of tag I used:
urlD:decode($sectionURL1)
it worked perfectly fine inside the stylus studio, but when I tried it from the java program, I got an exception:
First, once you leave the Stylus Studio environment, Saxon-related
questions are best handled on the saxon-help mailing list.
But check your command line, make sure you are using -cp and not -jar
to invoke Saxon.
If that doesn't solve it, you need to post your entire command line,
and your XSLT so that it can be seen how you are calling things. A
little snippet doesn't help because that doesn't show the context, and
it doesn't help others to reproduce what you tried.