Wrox Programmer Forums
|
BOOK: XSLT Programmer's Reference, 2nd Edition
This is the forum to discuss the Wrox book XSLT: Programmer's Reference, 2nd Edition by Michael Kay; ISBN: 9780764543814
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: XSLT Programmer's Reference, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2010, 05:25 PM
Authorized User
 
Join Date: Jan 2010
Posts: 33
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Michael,

I ask them for more clarification and am waiting to hear from them. In the meantime here is an excerpt of the requirement

Use the attached XML file which contains hotel information as it is returned to our servers for 5 distinct hotels to create a hotel selection interface. You should submit two files, the asp file which runs the code and the XSL file which will handle the display of the hotels.

The page should work inserted into any ASP web application so it should not rely on any external files or images or anything. Also, you should not worry too much about styling it, we're not testing your CSS ability, just the XML/XSL ability.

The page should work in the following way:
Initially, the user should see a dropdown box containing the names of all of the hotels in the XML file
Once a hotel is selected, its information should be displayed on the same page
You do not need to display all information, just the following:
Hotel Name
Address
Description
Rate information
You may assume that the hotelID is unique among all hotels
When the hotel information is shown, the user should be able to select another hotel and have that information shown

So judging by the requirement I think you are correct that they want XSLT and not ASP.NET to handle the display of hotels. Can you help me with this XSL?
 
Old January 27th, 2010, 06:31 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I suspect I've already given you a lot more teaching time than the people who are being paid to teach you.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
The Following User Says Thank You to mhkay For This Useful Post:
 
Old January 27th, 2010, 07:08 PM
Authorized User
 
Join Date: Jan 2010
Posts: 33
Thanks: 13
Thanked 0 Times in 0 Posts
Default

I am not going to school for this. I just got the answer back and they said yes to ASP.NET method. All I ask you is convert RateInfo element to a attribute for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding xml-html transformation of an xml string using xslt and javascript suprakash444 XSLT 1 January 12th, 2009 01:23 AM
xml transformation spring152103 XSLT 9 October 14th, 2008 07:50 PM
Is XML supports transformation of HTML to XML? zeeonline XSLT 1 July 28th, 2006 05:13 PM
Transformation Question realgone_ SQL Server DTS 1 March 3rd, 2005 10:22 PM
XML to XML transformation using XSLT karjagis XSLT 3 July 30th, 2004 06:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.