You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Y Z <xa...@hotmail.com> on 2000/08/26 02:38:51 UTC
getOwnerElement() [was: nodeset param]
Thanks for the solution, Gary. It works. However, when applying templates to
the node set
<xsl:apply-templates select="nodeset:nodeset($p)/*"/>
I get the fowwing error:
Exception in thread "main" java.lang.NoSuchMethodError: org.w3c.dom.Attr:
method getOwnerElement()Lorg/w3c/dom/Element; not found
Any ideas?
>From: Gary L Peskin <ga...@firstech.com>
>Reply-To: xalan-dev@xml.apache.org
>To: xalan-dev@xml.apache.org
>Subject: Re: nodeset param
>Date: Fri, 25 Aug 2000 14:08:27 -0700
>
>Please see my reply to you on xsl-list.
>
>Gary
>
>Y Z wrote:
> >
> > The below example does not work because I need to transform the param
>into a
> > node set. How can I do that using Xalan-j 1.2 ?
> >
> > <xsl:call-template name="temp">
> > <xsl:with-param name="p">
> > <tag_1><tag_2>V</tag_2></tag_1>
> > </xsl:with-param>
> > </xsl:call-template>
> >
> > <xsl:template name="temp">
> > <xsl:param name="p"/>
> > <xsl:apply-templates select="$p/*"/>
> > </xsl:template>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: getOwnerElement() [was: nodeset param]
Posted by Gary L Peskin <ga...@firstech.com>.
It sounds like you may be using an old version of xerces.jar. Check
your classpath to see if you have multiple versions of xerces.jar. If
so, remove the older one. I have one dated 7/25/00 and it works fine!
Gary
Y Z wrote:
>
> Thanks for the solution, Gary. It works. However, when applying templates to
> the node set
> <xsl:apply-templates select="nodeset:nodeset($p)/*"/>
> I get the fowwing error:
>
> Exception in thread "main" java.lang.NoSuchMethodError: org.w3c.dom.Attr:
> method getOwnerElement()Lorg/w3c/dom/Element; not found