• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scenario question

 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. An online travel agent company wants to create an XML-based application.
Company interacts with its B2B partners and supply better travel-package deals and
air-fares. It also does business by interacting same information directly with consumers
and B2C clients of various types through it's own website.
Which of the following provides the BEST design solution for the various clients
consuming the XML data?

For B2B requests, application will serve XML. The requesting client may transform
the XML into its own vocabulary using XSL stylesheets.

For all the requests, write a single XSL stylesheet to transform XML into XHTML.

Application may evaluate the request to decide whether the client is B2B or B2C.

For B2B requests, application will transform its XML into the requesting clients XML
vocabulary using XSL stylesheets and then serve it.

For B2C requests, application will transform its XML into HTML using XSL
stylesheets and will serve it.

My vote would be for the last two options??
Any ideas......
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jayadev,
Your choices seem right to me.
I also think that the first option makes sense - For B2B requests, application will serve XML.
The requesting client may transform the XML into its own vocabulary using XSL stylesheets.
It's not clear to me whether the server or the client should make the XSL transformations, or maybe it's reasonable that either one will do it.
Any thoughts?
Thanks,
Dan
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the case of B2C, the XSL transformation has to be on the server side. It's less obvious in the B2B realm.
 
Syed AliRaza Zaidi
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jayadev and Dan,
I think it will be good for B2B use that one partner should provide XML and Clients will transform it in to their vocabulary using XSLT because If Server Will Transform it should be Aware of all vocabulary and which makes a great over head for comany and also the meaning of losely coupled application is lost so client should it self transform it.
Secondly in B2C Case Server should transform data to HTML or XHTML to show to clients and Client do not need to transform they only see the trasformed and formatted data.
I will vote for first and last one.
Well if I am worng do correct me.
Syed Ali Raza Zaidi
Sun Certified Java Programmer 1.4
Sun Certified Java Programmer 1.3
Microsoft Certified C# Windows Application Programmer
[ November 11, 2002: Message edited by: Syed AliRaza Zaidi ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic