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

Re: Quiz: static transformation vs. JIT generation

  • To: Michael Kay <mike@s...>
  • Subject: Re: Quiz: static transformation vs. JIT generation
  • From: Razvan MIHAIU <mihaiu@m...>
  • Date: Sun, 27 Mar 2005 10:37:24 +0300
  • Cc: xml-dev@l...
  • User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

transformation quiz

The more I read the question, the less I understand. Lets read the 
question again:

"Which one would be the best approach for storing the rate updates ?"

	I underline the word "storing". Storing means "what can you do so that the input XML is quickly entered in the database ?". It is clear that if the XML format that is received is not in the same format as the one saved in the DB then some transformations must take place. But I do not see how the concept of "static transformations" can be applied in this case.

	To me the concept of "static transformations" only has a meaning when XML and a web server is involved. If the XML data is converted to HTML which is later server to the clients then a static transformatin takes place. If the XML data is converted to HTML on request then a just in time transformation takes place. Is there more to "static transformations" than I understand ?



Regards,
Razvan




Michael Kay wrote:

>I would interpret "static transformation" here as meaning "eager
>transformation", i.e doing the transformation as soon as new information
>arrives. And that's possibly a sensible strategy, though there is far too
>little information to say this definitively. For example, if prices are
>being updated 1000 times per second and the information is only needed once
>per hour, then it would be crazy.
>
>You have to accept with a simplistic quiz like this that the more you know,
>the more you will be aware that the right answer might not be right after
>all. If you ask a maths professor what the sum of the angles of a triangle
>is, they will ask you whether the space you are in has positive or negative
>curvature...
>
>Michael Kay
>http://www.saxonica.com/
>
>
>  
>
>>-----Original Message-----
>>From: Razvan MIHAIU [mailto:mihaiu@m...] 
>>Sent: 27 March 2005 05:50
>>To: xml-dev@l...
>>Subject:  Quiz: static transformation vs. JIT generation
>>
>>
>>
>>Hi,
>>
>>
>>
>>
>>
>>    On an XML quiz I met the following question:
>>
>>= = =
>>
>>A company wants to build a Website for trading shares. They have the 
>>latest updates coming to them from various exchanges in XML 
>>format and 
>>they need to be able to supply the updates to the client on various 
>>platforms: web + mobile + handheld devices. A processing application 
>>would analyze the incoming documents and update the central database. 
>>Since this is a real-time process the performance is a 
>>critical requirement.
>>
>>Which one would be the best approach for storing the rate updates ?
>>
>>A. separate xml documents for each share
>>B. a single document for each share
>>C. static transformations for generating the output XML documents
>>D. just in time transformation of output XML documents
>>
>>
>>= = =
>>
>>My answer: B
>>The correct answer: C
>>
>>
>>
>>    To my understanding 'static transformations' means to 
>>generate HTML 
>>pages from an XML source and to feed those pages to all the clients. 
>>'Just in time transformations' means to transform the XML to HTML for 
>>each client that requests the data.
>>
>>    Is it practical to apply 'static transformations' to some 
>>data that 
>>needs to be processed "real-time" ? If yes, how often would you apply 
>>the 'static transformation' ? If the data changes every 
>>second you will 
>>have to apply the 'static transformations' every second !
>>
>>    Is there another way to interpret this question ?
>>
>>
>>
>>Regards,
>>Razvan
>>
>>
>>
>>www.mihaiu.name
>>
>>
>>
>>-----------------------------------------------------------------
>>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>>initiative of OASIS <http://www.oasis-open.org>
>>
>>The list archives are at http://lists.xml.org/archives/xml-dev/
>>
>>To subscribe or unsubscribe from this list use the subscription
>>manager: <http://www.oasis-open.org/mlmanage/index.php>
>>
>>
>>    
>>
>
>
>
>
>
>  
>


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.