cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Dzmura <...@digital-mission.com>
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
called
"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?

Thanks,
Mark Dzmura

----------------------

Cocoon 1.7

                                                            Error found handling the request.

                       org.apache.xalan.xslt.XSLProcessorException:
                               at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1650)
                               at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1559)
                               at org.apache.xalan.xslt.ElemForEach.(ElemForEach.java:101)
                               at org.apache.xalan.xslt.StylesheetHandler.startElement(StylesheetHandler.java:684)
                               at org.apache.xalan.xpath.xml.TreeWalker.startNode(TreeWalker.java:195)
                               at org.apache.xalan.xpath.xml.TreeWalker.traverse(TreeWalker.java:98)
                               at org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:682)
                               at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:531)
                               at org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.java:94)
                               at org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:103)
                               at org.apache.cocoon.Engine.handle(Engine.java:283)
                               at org.apache.cocoon.Cocoon.service(Cocoon.java:145)
                               at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
                               at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
                               at org.apache.jserv.JServConnection.run(JServConnection.java:188)
                               at java.lang.Thread.run(Thread.java:479)


Mime
View raw message