Hi Eric, What you mean by "with "redirect" it seems to work, but no index.html" - if it does not create your file, then it does NOT work, does it? ;-)
I work with similar task - generating JavaDoc in pipeline and redirecting to index.html. So first of all: - if your transformer generates index.html (so you see it on the disk) - have you read my ATTENTION note about redirecting via HTML <meta>? - If you check sources of the page in IE, do you see the correct link? - if your transformer does not generate file, but you put the files manually in right places - does the application work? This steps allow you to localize your problem - it's either in generation, or in redirection. I'm using XALAN-2.2D11 (had some difficulties with early releases, but they seems to be not related to your problem) Best wishes, Nick > -----Original Message----- > From: Erik Stunkat [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 3:11 PM > To: [EMAIL PROTECTED] > Subject: RE: no html output after html rendering > > > Hi Nick > > thanks for your help! > > Unfortunately, when I say: > > extension-element-prefixes="xalan"> > > instead of: > extension-element-prefixes="redirect"> > > I get Parser errors,with "redirect" it seems to work, but no > index.html > > Any more ideas? It seems that nobody uses Cocoon with > junitreport (frames) or Norman Walshs stylesheets for Docbook > or Slides (others then the plain ones). > > Would be great! > > erik stunkat > > > > -----Original Message----- > From: Nick Entin [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 23, 2001 11:57 AM > To: [EMAIL PROTECTED] > Subject: RE: no html output after html rendering > > > Hi Eric, > > I might be wrong, but in my understanding transform is just > convert incoming SAX events to outgoing SAX events. If your > transformer writes something on disk - it has no impact on > serializer afterwards. You might have generated plain-text or > picture and only serializer knows what to do with the data. > But how serializer could know where you outputed the results > of xslt? Nowhere... > > I would do it another way: > - you leave output declaration for the stylesheet default > (put results to "usual" output stream), > > - you modify your stylesheet to generate _additional_ file > (multiple output files feature). For xalan it could be: > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns:xalan="org.apache.xalan.lib.Redirect" > extension-element-prefixes="xalan"> > <xsl:template match="/"> > <xalan:write select="docs/samples/ess/index.html"> > ... Whatever you put to the index.html... > </xalan:write> > > <!-- And here you make redirection to just generated page! -> > <html> > <meta http-equiv="refresh" content="3; > url=docs/samples/junit/index.html"/> > </html> > </xsl:template> > ... > > So this way, you actually generate two htmls - one for > pipeline and serializer, another with your data... > > ATTENTION: in XSLT paths to files could be different than > URLs!!! Thus write will use relative path from the current > directory, which seems to be bin directory of tomcat (if you > use tomcat), when URLs - are related to the current context. > In my situation I should do > <xalan:write select="../webapps/cocoon/docs/samples/ess/index.html"> > and > <meta http-equiv="refresh" content="3; > url=docs/samples/junit/index.html"/> > If current context is root of cocoon (<host:port>/cocoon). > > Best wishes, > Nick > > > -----Original Message----- > > From: Erik Stunkat [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 23, 2001 11:30 AM > > To: [EMAIL PROTECTED] > > Subject: RE: no html output after html rendering > > > > > > Hi Nick > > > > thanks for your answer, I tried > > > > <xsl:output method="html" > > encoding="ISO-8859-1" > > indent="no" > > meta http-equiv="refresh" > > content="3 > > url="docs/samples/ess/index.html"/> > > > > but Cocoon shows nothing, no error, just a blank page > > > > sitemap: > > > > <map:match pattern="esschunk2.html"> > > <map:generate src="docs/samples/ess/ess31.xml"/> > > <map:transform src="stylesheets/docbook/html/chunk.xsl"/> > > <map:serialize type="html"/> > > </map:match> > > > > > > or I tried this one: > > > > <map:match pattern="docs/samples/ess/index.html"> > > <map:generate src="docs/samples/ess/ess31.xml"/> > > <map:transform type="xslt" > > src="stylesheets/docbook/html/chunk.xsl"/> > > <map:serialize type="html"/> > > </map:match> > > > > the chunk.xsl give me multiple html files, starts with > index.html and > > cocoon seems to convert everything fine but doesn´t find > "index.html" > > (start page). Instead is always a blank page > > > > thanks for any answers/ideas > > > > erik > > > > -----Original Message----- > > From: Nick Entin [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 09, 2001 6:00 PM > > To: [EMAIL PROTECTED] > > Subject: RE: no html output after html rendering > > > > > > Hi Eric, > > > > I was in battle with the same problem last days. > > I presume junit-frames.xsl creates index.html, but produces > no output > > to the default destination, is that correct? > > > > You may find answer on your question in sitemap.java, generated for > > your sitemap.xmap. Also I'd recommend you to take a look > how the java > > is generating: > > <cocoon_home>\src\org\apache\cocoon\components\language\markup > > \sitemap\j > > ava\sitemap.xsl > > > > You could find many interesting things there. > > Serialize - is the last action in match: > > > > ... > > <!-- generate the code to invoke a serializer --> > > <xsl:template match="map:serialize"> > > <xsl:call-template name="setup-component"> > > <xsl:with-param name="default-component" > > select="/map:sitemap/map:components/map:serializers/@default"/> > > <xsl:with-param > > name="method">pipeline.setSerializer</xsl:with-param> > > <xsl:with-param name="prefix">serializer</xsl:with-param> > > <xsl:with-param name="mime-type" select="@mime-type"/> > > </xsl:call-template> > > > > <!-- if there is a status-code attribute tell it to the > > environment > > --> > > <xsl:if test="@status-code"> > > environment.setStatus(<xsl:value-of select="@status-code"/>); > > </xsl:if> > > > > <xsl:if test="not(ancestor::map:pipeline[@internal-only='yes' or > > @internal-only='true'])"> > > if (!internalRequest) { > > return pipeline.process(environment); > > } > > </xsl:if> > > <!-- the if(true) prevents "unreachable statement" errors > > during compile --> > > !!! if(true) return true; !!! > > </xsl:template> <!-- match="map:serialize" --> > > ... > > > > I marked with "!!!" the line, which does not allow your > redirector to > > execute. My solution is: In your xsl, you put to the default output > > the following lines: <html> <meta http-equiv="refresh" content="3; > > url=docs/samples/junit/index.html"/> > > </html> > > > > That works! > > > > Best wishes, > > Nick > > > > > -----Original Message----- > > > From: Erik Stunkat [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, November 09, 2001 5:42 PM > > > To: [EMAIL PROTECTED] > > > Subject: no html output after html rendering > > > > > > > > > Hi > > > > > > when I have an index.html page instead of the name I specify in > > > sitemap.xmap: > > > > > > <map:match pattern="junitframes.html"> > > > <map:generate src="docs/samples/junit/junit.xml"/> > > > <map:transform src="stylesheets/junit/junit-frames.xsl"/> > > > <map:serialize type="html"/> > > > !! <map:redirect-to uri="docs/samples/junit/index.html"/> !! > > > </map:match> > > > > > > > > > is that correct? I want to show the index.html page (there are a > > > couple of html generated). log file is ok, but there is > > only a blank > > > page in the browser. When I create the same stuff without > > cocoon the > > > initial page is "index.html" > > > > > > Erik Stunkat > > > QA > > > POET Software > > > Hamburg, Germany > > > +49(0)40 60990-303 > > > [EMAIL PROTECTED] > > > > > > > > > > > > > I have docbook dtd xml 4.1.2 with N. Walshs stylesheets and > > > I´m able > > > > to > > > get > > > > html output with the xsl stylesheets for plain html. It > > > seems to work > > > > with fo to produce pdfs (no errors in log) but the > browser shows > > > > nothing, empty page. > > > > > > Your problem is probably called 'microsoft'. > > > > > > 1. Try with Netscape/Opera > > > or > > > 2. Have an URL ending with .pdf > > > > > > -- > > > Sébastien Koechlin - IVision - [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > > 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]> > > > > > > > --------------------------------------------------------------------- > > 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]> > > > --------------------------------------------------------------------- > 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]> --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]> --------------------------------------------------------------------- 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]>