Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old January 27th, 2010, 05:25 PM
Authorized User
Join Date: Jan 2010
Posts: 33
Thanks: 13
Thanked 0 Times in 0 Posts


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
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?
  #12 (permalink)  
Old January 27th, 2010, 06:31 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

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

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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:04 PM.

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