cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Brisbin" <bris...@ipa.net>
Subject probs with custom logicsheets
Date Thu, 01 Mar 2001 14:50:08 GMT
Hi all :-)

I've been working on this project in cocoon (1.8.2 on tomcat 1.3.xx/mod_jk
on RH 6.1) and would like to add custom logicsheets under a 'sqlutil'
namespace.  I've successfully created the sheet, added the namespace,
changed cocoon.properties, etc...just like previous suggestions on the list.
Unfortunately, when I access my logic sheet with a tag, it generates this
error, even though all i'm doing is setting an <xsl:variable> as a test
(code follows)...

any help would be appreciated! :-)

jb


<sqlutil:sql-from-request pool="default"/>

<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
    xmlns:sqlutil="http://www.jbrisbin.net/2001/XSP/SQLUtil"
    version="1.0"
>

    <xsl:template match="sqlutil:sql-from-request">
        <xsl:variable name="pool">"<xsl:value-of
select="@pool"/>"</xsl:variable>
    </xsl:template>

</xsl:stylesheet>

org.apache.xalan.xslt.XSLProcessorException: Warning: can't output text
before document element!  Ignoring...
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1674)
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1638)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:671)
	at
org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.ja
va:107)
	at
org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:102)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:445)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
---------
org.xml.sax.SAXException: Warning: can't output text before document
element!  Ignoring...
	at
org.apache.xalan.xpath.xml.FormatterToDOM.append(FormatterToDOM.java:147)
	at
org.apache.xalan.xpath.xml.FormatterToDOM.characters(FormatterToDOM.java:331
)
	at
org.apache.xalan.xslt.XSLTEngineImpl$ResultTreeHandler.characters(XSLTEngine
Impl.java:3965)
	at
org.apache.xalan.xslt.XSLTEngineImpl.cloneToResultTree(XSLTEngineImpl.java:2
042)
	at
org.apache.xalan.xslt.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1177)
	at
org.apache.xalan.xslt.ElemTemplateElement.processLocatedNode(ElemTemplateEle
ment.java:1061)
	at
org.apache.xalan.xpath.SimpleNodeLocator.findChildren(SimpleNodeLocator.java
:773)
	at
org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java:428)
	at
org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java
:321)
	at org.apache.xalan.xpath.XPath.locationPath(XPath.java:964)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1385)
	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.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.processLocatedNode(ElemTemplateEle
ment.java:1061)
	at
org.apache.xalan.xpath.SimpleNodeLocator.findChildren(SimpleNodeLocator.java
:773)
	at
org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java:428)
	at
org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java
:321)
	at org.apache.xalan.xpath.XPath.locationPath(XPath.java:964)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1385)
	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.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.processLocatedNode(ElemTemplateEle
ment.java:1061)
	at
org.apache.xalan.xpath.SimpleNodeLocator.findChildren(SimpleNodeLocator.java
:773)
	at
org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java:428)
	at
org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java
:321)
	at org.apache.xalan.xpath.XPath.locationPath(XPath.java:964)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1385)
	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.ElemTemplateElement.transformChild(ElemTemplateElement
.java:1199)
	at
org.apache.xalan.xslt.ElemTemplateElement.processLocatedNode(ElemTemplateEle
ment.java:1061)
	at
org.apache.xalan.xpath.SimpleNodeLocator.findChildren(SimpleNodeLocator.java
:773)
	at
org.apache.xalan.xpath.SimpleNodeLocator.step(SimpleNodeLocator.java:428)
	at
org.apache.xalan.xpath.SimpleNodeLocator.locationPath(SimpleNodeLocator.java
:321)
	at org.apache.xalan.xpath.XPath.locationPath(XPath.java:964)
	at org.apache.xalan.xpath.XPath.execute(XPath.java:1385)
	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.ElemTemplate.execute(ElemTemplate.java:145)
	at org.apache.xalan.xslt.StylesheetRoot.process(StylesheetRoot.java:443)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:647)
	at
org.apache.cocoon.transformer.XalanTransformer.transform(XalanTransformer.ja
va:107)
	at
org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:102)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:445)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)


Mime
View raw message