cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hs...@daou.co.kr
Subject Cocoon doesn't process the function of nodeset
Date Thu, 03 Aug 2000 02:18:56 GMT
I find a abnomal output during cocoon test.
Why? Help me!!!

---------------- bbs.xml ---------------------------------------
<?xml version="1.0"?>
 <?cocoon-process type="xslt"?>
 <?xml-stylesheet href="count.xsl" type="text/xsl"?>
 <bbs >
   <item>
	<no>1</no>
   </item>
   <item>
	<no>2</no>
   </item>
   <item>
	<no>3</no>
   </item>
 </bbs>
 
-------------- count.xsl ----------------------------------------------------------------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="count(bbs)"/>
</xsl:template>

</xsl:stylesheet>

----------------- cocoon output ------------------------------------------------------------
org.apache.xalan.xslt.XSLProcessorException: Warning: can't output text before document element!
 Ignoring...
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java, Compiled Code)
	at java.lang.Exception.(Exception.java, Compiled Code)
	at org.xml.sax.SAXException.(SAXException.java, Compiled Code)
	at org.apache.xalan.xpath.XPathException.(XPathException.java, Compiled Code)
	at org.apache.xalan.xslt.XSLProcessorException.(XSLProcessorException.java, Compiled Code)
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java, Compiled Code)
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java, Compiled Code)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java, Compiled Code)
	at org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.java, Compiled
Code)
	at org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java, Compiled Code)
	at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
	at org.apache.cocoon.Cocoon.service(Cocoon.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
	at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
	at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
	at java.lang.Thread.run(Thread.java:479)


----------------------------------------
E-Mail : hsryu@daou.co.kr 
----------------------------------------
Mime
View raw message