Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Reply: XSLT CODE

Date Posted:12/22/2008 4:41 AM
Posted by:
Tetteh Tei

Somebody should help me with the XSLT code for transforming the XML Document below?


<?xml version="1.0"?>


<?xml-stylesheet type="text/xml" href="summary-list.xslt"?>


<hotel-availability-list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sample-list.xsd">


<hotel name="Club Praia" reference="AP021" class="apartment" occupants="5">


<availability>


<time-period>


<start-date>2005-08-01</start-date>


<end-date>2005-08-15</end-date>


</time-period>


<price>GBP:300</price>


</availability>


<location>


<country>Portugal</country>


<region> Algarve</region>


<resort>Praia Da Rocha</resort>


<address>Av.Comunidade Lusiada, Praia Da Rocha, Portugal, 8500-801 </address>


</location>


<description>


<text> Club Praia is divided and linked by a foot bridge over the main street which runs through the heart of Praia Da Rocha.</text>


<image>pria.jpeg</image>


</description>


<layout>


<room class="bedroom" id="bed-1">Twin bed, sink and ensuite</room>


<room class="bedroom" id="bed-2">Twin bed</room>


<room class="lounge">Pull out sofa bed sleeps 1, table sits 6, TV + satelite + DVD</room>


<room class="bathroom">Sink, WC, shower</room>


<room class="kitchen">Small kitchenette including sink, cooker and fridge</room>


</layout>


<features>


<pool length="30" max-depth="160" min-depth="30" indoor="false"/>


<DVD/>


<beds twin="2" sofa-bed="1"/>


</features>


</hotel>


<hotel name="Dom Pancho" reference="AP034" class="apartment" occupants="4">


<availability>


<time-period>


<start-date>2005-08-01</start-date>


<end-date>2005-08-15</end-date>


</time-period>


<price>GBP:250</price>


</availability>


<location>


<country>Portugal</country>


<region> Algarve</region>


<resort>Albufeira</resort>


<address>Av.Vila Verde, Albufeira, Portugal, 8340 </address>


</location>


<description>


<text>Situated close to the busy resort centre, the Dom Pancho is ideally located for Albufeira's many amenities. </text>


<image>pancho.jpeg</image>


</description>


<layout>


<room class="bedroom">Twin beds</room>


<room class="lounge">Pull out sofa bed sleeps 2, TV, doubles as dining area</room>


<room class="bathroom">WC, shower, hand basin</room>


<room class="kitchen">Small kitchenette including microwave and fridge</room>


</layout>


<features>


<pool length="35" min-depth="30" max-depth="120" indoor="false"/>


<microwave/>


<BBQ/>


<beds twin="1" sofa-bed="1"/>


</features>


</hotel>


<hotel name="Solferias Aparthotel" reference="AP052" class="apartment" occupants="4">


<availability>


<time-period>


<start-date>2005-08-01</start-date>


<end-date>2005-08-15</end-date>


</time-period>


<price>GBP:350</price>


</availability>


<location>


<country>Portugal</country>


<region> Algarve</region>


<resort>Praia do Carvoeiro</resort>


<address>Lagoa, Carvoeiro, Portugal, 8400-s27</address>


</location>


<description>


<text>This aparthotel is located on a hill above the resort of Praia do Carvoeiro, one of the Algarve’s best preserved fishing villages.</text>


<image>solferias.jpeg</image>


</description>


<layout>


<room class="bedroom" id="bed-1">Kingsize bed, closet, telephone</room>


<room class="bedroom" id="bed-2">Kingsize bed, closet</room>


<room class="lounge">Balcony, TV, safe, doubles as dining area</room>


<room class="bathroom">WC, shower, hand basin, bathtub</room>


<room class="kitchen">Small kitchenette including cooker and fridge</room>


</layout>


<features>


<pool length="30" min-depth="60" max-depth="180" indoor="false"/>


<dishwasher/>


<microwave/>


<DVD/>


<beds double="2"/>


</features>


</hotel>


</hotel-availability-list>






Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Canon compatible cartridges
halloween masks
gotomeeting
conference call
chicago web design
Alojamiento de Web
UK Web Hosting
CCTV Monitors
D&g sunglasses
Video Surveillance
Hosted Exchange, SDSL

4,127 Total Members
13 members(last 30 days)
3 members(last 7 days)
0 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,138 Total Resources
3 Resources(last 30 days)
2 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139