cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hs...@daou.co.kr
Subject Error occurs : Can not convert #UNKNOWN to a NodeList!
Date Mon, 14 Aug 2000 02:35:43 GMT

I write my sample XSL code as below.
In the sample, I defined a '<xsl:variable name="lwhead">' variable (Line 4-7).
And I used that variable at Line 14, but error occurs.
What's the problem this code?
In my 'Stylus' editor, there's no problems.

##### Test Code ######################

1: <?xml version="1.0" encoding="euc-kr"?>
2: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3: 
4: <xsl:variable name="lwhead">
5: <item>String 1</item>
6: <item>String 2</item>
7: </xsl:variable>
8:
9: <xsl:template match="lwml">
10: <xsl:processing-instruction name="cocoon-format">type="text/html/loose"</xsl:processing-instruction>
11: <html>
12: <body> 
13:
14:        <xsl:value-of select="count($lwhead2)"/>
15: <xsl:apply-templates/>
16: </body>
17: </html>
18: </xsl:template>
19:
20: </xsl:stylesheet>


##### Error ###########################
 
org.apache.xalan.xslt.XSLProcessorException: Can not convert #UNKNOWN to a NodeList!
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1630)
at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1594)
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:110)
at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:479)


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Flood Lee   Project Manager / m.ASP Dept. / DAOU Tech Inc.
mailto:hslee@daou.co.kr  http://cooltips.daou.co.kr/lflood  +82-2-3450-4662
World Wide Education <Netplain & Learning Web> : http://www.netplain.com


Mime
View raw message