> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> It does not *execute* XSP page neither *calls* XSP page. > >> It merely *reads* XSP page, that's it. > > Ah, my mistake then, sorry. The interesting thing to note, is that it did > not give any errors calling it the way I did -- and when I remove the > <xsp:page></xsp:page> elements from the file and "read it" the way I did, it > gave me an erros in "dynamic-page2html.xsl" and in "simple-page2html.xsl" > > > >> Fix it by specifying correct generator type: > >> > >> <map:generate type="serverpages" src="ogc/ogl-preamble.xsp"/> > > I'll attempt this right away, but I still have a questions though: > > Can I place a map:generate inside an aggregate?
No. > I thought the only valid > child element was map:part. Yes. > Or do I accomplish it with a > > <map:part type="serverpages" src="ogc/ogl-preamble.xsp"/ strip-root="true" > /> No. But you can reference pipeline which executes your XSP: <map:part src="cocoon:/ogc/ogl-preamble"/ strip-root="true"/> (just add pipeline for "ogc/ogl-preamble") > --- > OK, I've tried what you've suggested... I'm using the map:generate tag, > with type equaling serverpages. I've placed my own root tag inside the XSP > page, > > > sitemap.xmap > ============= > <map:match pattern="test_xsp"> > <map:generate type="serverpages" src="ogc/ogl-preamble.xsp"/> > <map:serialize type="html"/> > </map:match> > ============= Good. > ogc/ogl-preamble.xsp > ============= > <xsp:page xmlns:xsp="http://apache.org/xsp"> > <test><testme>Hello World</testme></test> > </xsp:page> > ============= Good. > Now when I browse to the appriopiate address I get back an emtpy html page: > > ============= > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=Content-Type content="text/html; > charset=windows-1252"></HEAD> > <BODY></BODY></HTML> > ============= I bet you use IE. Try refreshing or try something different and/or read log files. > No error messages reported in the browser, no error messages in the error > log. So, as a sanity check I brought up the cocoon status page, and low and > behold I'm getting the same error messages. OK, now I don't think this > problem has anything to do with my particular application, but with my > replacing Xalan with Saxon... May be. > So I'm going to pull the whole lot out, > reinstall, and try putting Saxon in again and see if I can find out where > exactly I start gettting the error messages. Try all the samples also, including XSP samples. Put your xsp page in the docs/xsp directory and invoke it as http://localhost:8080/cocoon/xsp/mypage. Vadim > For the record, here are the heads of the error messages that I get by > starting up Coocon, and browsing to the status page at > http://fclistserver.fullcoll.edu:8080/cocoon/status > > There are all of the variety: > "Attribute xmlns: is not allowed on this element" > > > ================================= > ERROR (2002-05-06) 20:59.26:769 [core.xslt-processor] (/cocoon/) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column > -1; > ; SystemID: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17; > Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > > ================================= > ERROR (2002-05-06) 20:59.26:779 [core.xslt-processor] (/cocoon/) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column > -1; > ; SystemID: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17; > Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > ================================= > ERROR (2002-05-06) 20:59.26:809 [core.xslt-processor] (/cocoon/) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 17; Column > -1; > ; SystemID: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 17; > Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > ================================= > ERROR (2002-05-06) 20:59.26:879 [core.xslt-processor] (/cocoon/) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 33; Column > -1; > ; SystemID: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 33; > Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > ================================= > ERROR (2002-05-06) 20:59.27:320 [core.xslt-processor] (/cocoon/) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line 48; Column > -1; > ; SystemID: > jar:file:/C:/tomcat4/webapps/cocoon/WEB-INF/lib/cocoon-2.0.2.jar!/org/ap ache > /cocoon/components/language/markup/sitemap/java/sitemap.xsl; Line#: 48; > Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > ================================= > ERROR (2002-05-06) 20:59.52:596 [core.xslt-processor] (/cocoon/status) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > file:/C:/tomcat4/webapps/cocoon/welcome/status2html.xsl; Line 3; Column -1; > ; SystemID: file:/C:/tomcat4/webapps/cocoon/welcome/status2html.xsl; Line#: > 3; Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > ================================= > ERROR (2002-05-06) 20:59.52:646 [core.xslt-processor] (/cocoon/status) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > file:/C:/tomcat4/webapps/cocoon/welcome/status2html.xsl; Line 3; Column -1; > ; SystemID: file:/C:/tomcat4/webapps/cocoon/welcome/status2html.xsl; Line#: > 3; Column#: -1 > javax.xml.transform.TransformerConfigurationException: Attribute xmlns: is > not allowed on this element > > > > Thanks, > Mike --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>