You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by hj...@k4m.com on 2001/02/21 03:34:14 UTC
about Xalan-J 2.0
hi.
I am java developer interested in your XSLT transformer Xalan-J 2.0.0.
I tried Xalan to use my project.
At first i tested Xalan on command line with your simple sample and the
result was sucessful.
but my project works on the web, so i have to use Xalan on servlet or jsp.
when i tried Xalan on servlet , i got the runtime error.
the result of my test as follows.
/////////////////////////////////////////////////////////////////////////////////////////////
java.lang.NoSuchMethodError
at
org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:471)
at
org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:388)
at
org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIterator.java:193)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:428)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:484)
///////////////////////////////////////////////////////////////////////////////////////////////
i guess that methods above are included in Xalan.jar..
i still don't know why.
i have to solve this problem.
besides i have another problem about "charset" .
i had experiened Xalan 1.0 last year.
because i am in korea, it is important to configure charaterset .
so i used setEncoding("euc-kr") , the method of Xalan 1.0 to configure
the characterset.
in Xalan 2.0, what method can I use to solve this problem ?
i expect your prompt reply.
bye.
Re: about Xalan-J 2.0
Posted by Gary L Peskin <ga...@firstech.com>.
hjkim@k4m.com wrote:
>
> hi.
> I am java developer interested in your XSLT transformer Xalan-J 2.0.0.
> I tried Xalan to use my project.
> At first i tested Xalan on command line with your simple sample and the
> result was sucessful.
> but my project works on the web, so i have to use Xalan on servlet or jsp.
> when i tried Xalan on servlet , i got the runtime error.
> ...
You have another set of DOM classes earlier in your CLASSPATH or in your
lib/ext directory (if you're using Java 2). Remove those or make sure
that xerces.jar and xalan.jar are first in the CLASSPATH and this will
work.
>
> besides i have another problem about "charset" .
>
> i had experiened Xalan 1.0 last year.
> because i am in korea, it is important to configure charaterset .
> so i used setEncoding("euc-kr") , the method of Xalan 1.0 to configure
> the characterset.
>
> in Xalan 2.0, what method can I use to solve this problem ?
>
> i expect your prompt reply.
The best approach would be to specify encoding attribute on an
xsl:output element in your stylesheet. Otherwise, I'd guess you could
call transformer.setOutputProperty(OutputKeys.ENCODING, "euc-kr").
Gary