>Date: Sat, 09 Mar 2002 06:43:10 +0100 >To: [EMAIL PROTECTED] >From: "Mag. Josef Fritsch" <[EMAIL PROTECTED]> >Subject: xsp, xsl problem with xindice > >Hello, >i want to get some Content out of an Xindice DB-Collection with xsp and >then transform it with xslt, for example: >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > while (results.hasMoreResources()) { > Resource res = results.nextResource(); > > /* Results via SAX */ > if > (res.getResourceType().equals("XMLResource")) > >((XMLResource)res).getContentAsSAX > >(this.contentHandler); > > } >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > >my sitemap entries are: > >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > <map:pipelines> > <!-- The only working pipeline here --> > <map:pipeline> > <map:match pattern="*"> > <map:generate type="serverpages" src="{1}.xsp"/> > <map:transform type="xslt" src="xml-2html.xsl"/> > <map:serialize/> > </map:match> > </map:pipeline> >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > >I dont get any results after xslt-transformation. I tested another way to >get the content: > >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > while (results.hasMoreResources()) { > Resource res = results.nextResource(); > > result += > (String)res.getContent(); > } > <xsp:content> > <xsp:expr>result</xsp:expr> > </xsp:content> >////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > >and a got the results as unparsed String as expected. Has anyone an idea >how to resolve my problem. I am new in cocoon2 sitemap concepts. > >Thanks >Joe > > > >
--------------------------------------------------------------------- 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]>