Re: help on rolling my own XSL
Thank you, Giacomo, this was, indeed, missing from my logicsheet. My extraction from the esql logicsheet original was too hasty and incomplete. I'm flying now. Thanks to all for your forebearance, Jerry Giacomo Pati wrote: Do you have a copy-over template in your logicsheet like: xsl:template match=@*|*|text()|processing-instruction() xsl:copy xsl:apply-templates select=@*|*|text()|processing-instruction()/ /xsl:copy /xsl:template Giacomo On Mon, 30 Sep 2002, Jerry Fowler wrote: Gentlefolk: I'm using the off-the-shelf Cocoon 2.0.3. I'm trying to roll my own xsp logicsheet, with an error result that I hope someone will recognize instantly: -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help on rolling my own XSL
Gentlefolk: I'm using the off-the-shelf Cocoon 2.0.3. I'm trying to roll my own xsp logicsheet, with an error result that I hope someone will recognize instantly: The constructed file, results_test_xsp.java, contains empty package line, and an empty class declaration, as follows: package ; ... /** * Generated by XSP. Edit at your own risk, :-) */ public class extends XSPGenerator { My keen nose and the Java parser tell me that the program generator should have inserted a package name and a class name in order to make this code mean anything. My grateful salute to anyone who can say off the top of the head why the generator chose to shortchange me. Below I provide the relevant portions of my xsp and my logicsheet if the clue above does not immediately ring a bell. I believe I have faithfully followed the guidelines on /cocoon/documents/userdocs/xsp/logicsheet.html, to wit, File results-test.xsp: -- ?xml version=1.0? ?xml-logicsheet href=file:///tmp/xeosql.xsl? xsp:page xmlns:xsl=http://apache.org/xsl; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; document body xsl:call-template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / /xsl:call-template /body /document /xsp:page -- File xeosql.xsl: -- ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xspdoc:desc Deliver data directly from an AIDIF /xspdoc:desc xsl:param name=XSP-ENVIRONMENT/ xsl:param name=XSP-VERSION/ xsl:param name=filename/ xsl:param name=language/ xsl:variable name=environmentCocoon 2/xsl:variable xsl:variable name=xsp-namespace-urihttp://apache.org/xsp/xsl:variable xsl:variable name=prefixxeosql/xsl:variable xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:include.../xsp:include /xsp:structure xsl:apply-templates/ /xsp:page /xsl:template xsl:template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / xsp:logic ... /xsp:logic /xsl:template !-- Allows initialization code to be executed exactly once. -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet -- Many thanks, Jerry -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help on rolling my own XSL
Do you have a copy-over template in your logicsheet like: xsl:template match=@*|*|text()|processing-instruction() xsl:copy xsl:apply-templates select=@*|*|text()|processing-instruction()/ /xsl:copy /xsl:template Giacomo On Mon, 30 Sep 2002, Jerry Fowler wrote: Gentlefolk: I'm using the off-the-shelf Cocoon 2.0.3. I'm trying to roll my own xsp logicsheet, with an error result that I hope someone will recognize instantly: The constructed file, results_test_xsp.java, contains empty package line, and an empty class declaration, as follows: package ; ... /** * Generated by XSP. Edit at your own risk, :-) */ public class extends XSPGenerator { My keen nose and the Java parser tell me that the program generator should have inserted a package name and a class name in order to make this code mean anything. My grateful salute to anyone who can say off the top of the head why the generator chose to shortchange me. Below I provide the relevant portions of my xsp and my logicsheet if the clue above does not immediately ring a bell. I believe I have faithfully followed the guidelines on /cocoon/documents/userdocs/xsp/logicsheet.html, to wit, File results-test.xsp: -- ?xml version=1.0? ?xml-logicsheet href=file:///tmp/xeosql.xsl? xsp:page xmlns:xsl=http://apache.org/xsl; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; document body xsl:call-template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / /xsl:call-template /body /document /xsp:page -- File xeosql.xsl: -- ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xeosql=http://xeotron.com/cocoon/SQL/v1; xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1; xspdoc:desc Deliver data directly from an AIDIF /xspdoc:desc xsl:param name=XSP-ENVIRONMENT/ xsl:param name=XSP-VERSION/ xsl:param name=filename/ xsl:param name=language/ xsl:variable name=environmentCocoon 2/xsl:variable xsl:variable name=xsp-namespace-urihttp://apache.org/xsp/xsl:variable xsl:variable name=prefixxeosql/xsl:variable xsl:template match=xsp:page xsp:page xsl:apply-templates select=@*/ xsp:structure xsp:include.../xsp:include /xsp:structure xsl:apply-templates/ /xsp:page /xsl:template xsl:template name=xeosql:execute-query xsl:param name=tabletitle select='Results' / xsp:logic ... /xsp:logic /xsl:template !-- Allows initialization code to be executed exactly once. -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet -- Many thanks, Jerry - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]