[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Didier's lab report

  • From: Didier PH Martin <martind@n...>
  • To: "Arnold, Curt" <Curt.Arnold@h...>, xml-dev@x...
  • Date: Wed, 26 Jul 2000 17:42:10 -0400

blank lab report template
Hi Curt,

Curt said:
It should be possible for an XSLT implementation to use asynchronous
retrieval of document() using variables.

Say, if you had something like this

<xsl:transform ....>

	<xsl:variable name="doc1" select="document('doc1.xml',.)"/>
	<xsl:variable name="doc2" select="document('doc2.xml',.)"/>
	<xsl:variable name="doc3" select="document('doc3.xml',.)"/>


	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>

	...
</xsl:transform>

The declaration of the variable could start the download/parsing process but
not block further execution.  Only when the variable was used in an
expression
would the template evaluation thread need to block.

I do not know if any of the existing processors implement this type of
behavior,
however it would not seem to require any changes to XSLT to approach the
performance that you estimated for XInclude.

Didier replies:
If I understand you well, this would imply first that we are allowed to use
as a variable an external document tree. Then, if the XSLT processor
recognizes that the select is a document() function, that the XSLT processor
starts a thread to set the variable to a tree (will take as much time as the
external server will take to return the resulting document). After having
started a thread, the XSLT engine would go to the next variable assignment.

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: xml devconf 2000 (http://www.xmldevconf2000.com)
Book: XML Professional (http://www.wrox.com)
column: Style Matters (http://www.xml.com)
Products: http://www.netfolder.com


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.