You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Nestel, Frank" <fr...@coi.de> on 2000/08/29 18:10:06 UTC

bug ???

Hi,

I am trying to get the very interesting article

http://www.xml.com/print/2000/07/26/xslt/xsltstyle.html

to work. But it seems to me that the "identity transformation"

 <xsl:template match="@*|*">
    <xsl:message><xsl:value-of select="name()"/></xsl:message>
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

which is pretty crucial for that technique, is not working with Xalan-J.
It works fine until there are attributes involved for transformation.
Then it fails :-(

I tested 1.2D02 with Xalan 1.1.3 and end up with a long stack trace (see 
below). Could anyone give me a clue??

Thank you very much,

Frank.


500 Servlet Exception
java.lang.NoSuchMethodError
	at
org.apache.xalan.xpath.xdom.XercesLiaison.getParentOfNode(XercesLiaison.java
:396)
	at
org.apache.xalan.xpath.MutableNodeListImpl.isDOMNodeAfter(MutableNodeListImp
l.java:499)
	at
org.apache.xalan.xpath.MutableNodeListImpl.isNodeAfter(MutableNodeListImpl.j
ava:481)
	at
org.apache.xalan.xpath.MutableNodeListImpl.addNodeInDocOrder(MutableNodeList
Impl.java:401)
	at
org.apache.xalan.xpath.MutableNodeListImpl.addNodeInDocOrder(MutableNodeList
Impl.java:454)
	at
org.apache.xalan.xpath.MutableNodeListImpl.addNodesInDocOrder(MutableNodeLis
tImpl.java:240)
	at
org.apache.xalan.xpath.SimpleNodeLocator.union(SimpleNodeLocator.java:282)
	at org.apache.xalan.xpath.XPath.union(XPath.java:851)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1373)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1354)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:311)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformSelectedChildren(ElemTemp
lateElement.java:896)
	at
org.apache.xalan.xslt.ElemApplyTemplates.execute(ElemApplyTemplates.java:176
)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at org.apache.xalan.xslt.ElemCopy.execute(ElemCopy.java:120)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformSelectedChildren(ElemTemp
lateElement.java:962)
	at
org.apache.xalan.xslt.ElemApplyTemplates.execute(ElemApplyTemplates.java:176
)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at org.apache.xalan.xslt.ElemCopy.execute(ElemCopy.java:120)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformSelectedChildren(ElemTemp
lateElement.java:962)
	at
org.apache.xalan.xslt.ElemApplyTemplates.execute(ElemApplyTemplates.java:176
)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at org.apache.xalan.xslt.ElemCopy.execute(ElemCopy.java:120)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformSelectedChildren(ElemTemp
lateElement.java:962)
	at
org.apache.xalan.xslt.ElemApplyTemplates.execute(ElemApplyTemplates.java:176
)
	at
org.apache.xalan.xslt.ElemTemplateElement.executeChildren(ElemTemplateElemen
t.java:661)
	at org.apache.xalan.xslt.ElemTemplate.execute(ElemTemplate.java:145)
	at
org.apache.xalan.xslt.StylesheetRoot.process(StylesheetRoot.java:443)
	at
org.apache.xalan.xslt.XSLTEngineImpl.endDocument(XSLTEngineImpl.java:3374)
	at
de.coi.xml.sax.SAX1FromProcedure.endDocument(SAX1FromProcedure.java:269)
	at NavigationSAX.doIt(NavigationSAX.java:32)
	at de.coi.xml.sax.SAX1FromProcedure.run(SAX1FromProcedure.java:40)
	at de.coi.servlet.XMLServlet.doGet(XMLServlet.java:123)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:102)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
	at
com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:450)
	at
com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:393)
	at
com.caucho.server.http.PageCache$Entry.service(PageCache.java:252)
	at com.caucho.server.http.PageCache.service(PageCache.java:103)
	at com.caucho.server.http.VirtualHost.service(VirtualHost.java:395)
	at com.caucho.server.http.Request.dispatch(Request.java:211)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:201)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:142)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:145)
	at java.lang.Thread.run(Thread.java:484)


----------------------------------------------------------------------------
----
Resin 1.1.2 -- Fri May 19 13:30:01 PDT 2000