On Thu, 16 Sep 2004 11:51:46 +0200, "Eric van der Vlist" <[EMAIL PROTECTED]> said: > Hi, > > I am writing a prototype to show how Presentation Server might be used > to power XMLfr (http://xmlfr.org) starting with the XMLfr features > that need a most urgent attention (actually I am writing two > prototypes, one with Cocoon and another one with Presentation Server). > > The first feature I am implementing is a search engine interface based > on Lucene. The result of this is available at > http://beta.xmlfr.org/orbeon/lucene/cherche (the CSS is developed for > Mozilla and doesn't work with IE yet). > > This is done as in two steps: > > * The LuceneProcessor (http://dev.xmlfr.org/svn/xmlfr- > beta/sources/org/xmlfr/orbeon/LuceneProcessor.java) is used to > generate a RSS channel with the search results. This first > pipe is described in http://dev.xmlfr.org/svn/xmlfr-beta/orbeon/WEB- > INF/resources/lucene/rss.xpl). > * A transformation does the translation between this RSS channel > and the user interface (the pipe is described in > http://dev.xmlfr.org/svn/xmlfr-beta/orbeon/WEB- > INF/resources/lucene/cherche.xpl and the transformation > available at http://dev.xmlfr.org/svn/xmlfr-beta/orbeon/WEB- > INF/resources/lucene/affiche.xsl). > > In that transformation, I currently access to the RSS document using > the HTTp protocol: > > <xsl:apply-templates select="document(concat('http://localhost:8280/xmlfr- > orbeon/lucene/rss', $requestQuery))/rdf:RDF"/> > > Is there a way to access directly to the output of the rss.xpl pipe > with the same query string? > ... > That would be nice to have something similar to the "cocoon:" > protocol that lets you execute a pipeline and get its result > from wherever you are (XSLT, Java, ...).
First of all let me apologize for the delayed response. Seems that xmlns="http://www.w3.org/1999/xhtml" from affiche.xsl + affiche.xsl used as view + no epilogue results in an exception from Saxon. This much I know after a protracted debug session... Wrt to your question - I set up your search page locally and after looking at it I began to wonder if an answer to the question above is what you really needed. So - a.) Attached is a zip that contains a modified version of your xmlfr search page. The mods are i.) Removed this particular bit of ugliness : select="document(concat('http://localhost:8280/xmlfr- orbeon/lucene/rss', $requestQuery))/rdf:RDF" ii.) Minor mods to make it work locally. While these should be obvious in a diff they are also cataloged in readme.html b.) The short answer to the 'query string' question is 'no'. More info on this below. c.) We are going to post a follow up to this message. Attached will be something cleaned up a bit more than what I am sending this time. Now the aforemetioned 'more info'. The Presentation Server is really focused on moving XML documents, passed as parameters, through pipelines. So when there is any data you want, e.g. request parameters, the first question should be 'What generator can grab that data and put in the pipeline as a document?' Of course in some cases, xforms instance for example, the document is already provided so a generator is not needed. Since this mail thread started in the context of xslt processing, I'll add a little more data about that. In the case of the xslt processor can access the parameters with a uri of the form oxf:{parameter name}. However when the xslt processor is used the page flow pipeline this feature isn't very useful as the only inputs are oxf:data, which is just the document that is being processed, and config, which is the stylesheet. I mention all of this because it when I saw how you were trying to work with the request parameters it looked a little unnatural for a Presentation Server based app. -- Dan S ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
