cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Dzmura <>
Subject error testing attribute existence with for-each
Date Tue, 04 Apr 2000 23:51:32 GMT
When I try to process the following XSLT, trying to test for the existence of an attribute
"selected" in the current node:

    <xsl:for-each selected="./@selected">

I get the following error from cocoon.  It does not matter whether the attribute exists
or not - the error is always generated.  Apparently XSLT is reporting an error, but there
is no descriptive text accompanying it...

Any ideas?

Mark Dzmura


Cocoon 1.7

                                                            Error found handling the request.

                               at org.apache.xalan.xslt.XSLTEngineImpl.error(
                               at org.apache.xalan.xslt.XSLTEngineImpl.error(
                               at org.apache.xalan.xslt.ElemForEach.(
                               at org.apache.xalan.xslt.StylesheetHandler.startElement(
                               at org.apache.xalan.xpath.xml.TreeWalker.startNode(
                               at org.apache.xalan.xpath.xml.TreeWalker.traverse(
                               at org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(
                               at org.apache.xalan.xslt.XSLTEngineImpl.process(
                               at org.apache.cocoon.transformer.XalanTransformer.transform(
                               at org.apache.cocoon.processor.xslt.XSLTProcessor.process(
                               at org.apache.cocoon.Engine.handle(
                               at org.apache.cocoon.Cocoon.service(
                               at javax.servlet.http.HttpServlet.service(
                               at org.apache.jserv.JServConnection.processRequest(

View raw message