OK. This stuff is over my head :-( , but at the risk of being (more) annoying why couldn't you return this with http?
Is the performance that much better? Is it a better architectural design? best, -Rob ----- Original Message ----- From: "Luke Studley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 4:18 PM Subject: RE: Inserting / Comining XML data > Not at all! > > I am wanting to use my own URIResolver so I can define my own or arbitrary > 'protocols'. Here is an example: > > <xsl:variable name="nextMessageSet" > select="document('jbossmq://localhost:1099/QueueConnectionFactory#MyXMLTestQ > ueue?max=10')"/> > > Now it doesn't matter what text string goes in the document argument - as > long as your URIResolver knows how to process it into some form of XML. So > my URI processor might implement a stack of protocols that know how to do > different things and if it doesn't match one it defaults to the regular url > patterns. E.g for the example above my resolver might know how to handle > this string by connecting to a jboss JMS message queue and retrieve a > maximum of 10 messages and return it as a chunk of XML - that I can then use > in my stylesheet. > > This is particularly powerful when you couple it with dynamic xpath > expressions (like with saxon:expression). It is nice doing the processing > this way as you don't have to make any assumptions in the data setup about > how your stylesheet processing might go (hence pull MVC - your model really > doesn't need to know anything about the view). In particular I use it as > part of a lazy loading strategy - rather than pre-loading an entire XML > document generated from multiple dBs and App servers before XSLT processing > I use the document() function to selectively load what is required depending > on the processing path that is actually followed in the stylesheet. > > Works for me anyhow ;-) > > Luke > > > > -----Original Message----- > From: Robert Koberg [mailto:[EMAIL PROTECTED]] > Sent: 05 December 2001 23:55 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Inserting / Comining XML data > > are you saying something like this does not work? > > <xsl:value-of select="document('http://tiller:8080/koberg/boo.xml')/boo"/> > > or > > <xsl:value-of select="document('http://tiller:8080/MyServlet')/boo"/> > > > With the xml being: > <boo>boo</boo> > > It works in my processor (saxon, I remember it working in xalan too??). I > thought any uri will work just as long as it returns xml?? > > best, > -Rob > > > > > --------------------------------------------------------------------- > 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]>