title: Second record from xml in xslt
body: <p>My xslt works only for the first record from the XMl but not for the other records.i am not sure how to get the other records populated through xslt .I am sure its something to do with Hotel order = but i am new to XMl stuff so please help.</p>
  
  <p>Please help me </p>
  
  <p>The code for xml is below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;DestinationResults size="1"&gt;
    &lt;Destination name="Paris, FRA" order="1"&gt;
      &lt;HotelAvailabilityListResults size="10"&gt;
        &lt;Hotel order="1"&gt;
          &lt;hotelId&gt;188139&lt;/hotelId&gt;
          &lt;name&gt;
            &lt;![CDATA[ Hotel Magenta Paris ]]&gt;
          &lt;/name&gt;
          &lt;address1&gt;38 Boulevard De Magenta&lt;/address1&gt;
          &lt;address2/&gt;
          &lt;address3/&gt;
          &lt;city&gt;Paris&lt;/city&gt;
          &lt;stateProvince/&gt;
          &lt;country&gt;FR&lt;/country&gt;
          &lt;postalCode&gt;75010&lt;/postalCode&gt;
          &lt;latitude&gt;48.87203&lt;/latitude&gt;
          &lt;longitude&gt;2.35995&lt;/longitude&gt;
          &lt;tripAdvisorRating&gt;4.0&lt;/tripAdvisorRating&gt;
          &lt;fromDate&gt;10/11/2013&lt;/fromDate&gt;
          &lt;toDate&gt;10/12/2013&lt;/toDate&gt;
          &lt;shortDescription&gt;
            &lt;![CDATA[&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Property Location&amp;lt;/b&amp;gt; &amp;lt;br /&amp;gt;With a stay at Hotel Magenta Paris in Paris (Gare du Nord - Gare de L&amp;apos;Est), you&amp;apos;ll be minutes from Porte Saint-Martin and close to Louvre Museum. This]]&gt;
          &lt;/shortDescription&gt;
          &lt;thumbNailUrl&gt;
  http://origin-images.ian.com/hotels/1000000/890000/889000/888903/888903_22_t.jpg
          &lt;/thumbNailUrl&gt;
          &lt;propertyRating&gt;3.0&lt;/propertyRating&gt;
          &lt;referenceProximityDistance&gt;-1.0&lt;/referenceProximityDistance&gt;
          &lt;referenceProximityUnit/&gt;
          &lt;HotelProperty&gt;
            &lt;promoDescription&gt;Stay 1 nights and save 10% off your stay!&lt;/promoDescription&gt;
            &lt;ValueAdds&gt;
              &lt;valueAdd id="2048"&gt;Free Wireless Internet&lt;/valueAdd&gt;
            &lt;/ValueAdds&gt;
            &lt;PromoRateInfo&gt;
              &lt;displayCurrencyCode&gt;USD&lt;/displayCurrencyCode&gt;
              &lt;DisplayNightlyRates size="1"&gt;
                &lt;displayNightlyRate&gt;152.02&lt;/displayNightlyRate&gt;
              &lt;/DisplayNightlyRates&gt;
              &lt;displayRoomRate&gt;168.68&lt;/displayRoomRate&gt;
              &lt;chargeableRoomRateTotal&gt;168.68&lt;/chargeableRoomRateTotal&gt;
              &lt;chargeableRoomRateTaxesAndFees&gt;16.66&lt;/chargeableRoomRateTaxesAndFees&gt;
              &lt;taxesOnly&gt;16.66&lt;/taxesOnly&gt;
              &lt;salesTax&gt;0&lt;/salesTax&gt;
              &lt;hotelOccupancyTax&gt;0&lt;/hotelOccupancyTax&gt;
              &lt;nativeCurrencyCode&gt;USD&lt;/nativeCurrencyCode&gt;
              &lt;NativeNightlyRates size="1"&gt;
                &lt;nativeNightlyRate&gt;152.02&lt;/nativeNightlyRate&gt;
              &lt;/NativeNightlyRates&gt;
              &lt;nativeRoomRate&gt;168.68&lt;/nativeRoomRate&gt;
              &lt;rateFrequency&gt;B&lt;/rateFrequency&gt;
            &lt;/PromoRateInfo&gt;
            &lt;RateInfo&gt;
              &lt;displayCurrencyCode&gt;USD&lt;/displayCurrencyCode&gt;
              &lt;DisplayNightlyRates size="1"&gt;
                &lt;displayNightlyRate&gt;168.91&lt;/displayNightlyRate&gt;
              &lt;/DisplayNightlyRates&gt;
              &lt;displayRoomRate&gt;185.57&lt;/displayRoomRate&gt;
              &lt;chargeableRoomRateTotal&gt;185.57&lt;/chargeableRoomRateTotal&gt;
              &lt;chargeableRoomRateTaxesAndFees&gt;16.66&lt;/chargeableRoomRateTaxesAndFees&gt;
              &lt;taxesOnly&gt;16.66&lt;/taxesOnly&gt;
              &lt;salesTax&gt;0&lt;/salesTax&gt;
              &lt;hotelOccupancyTax&gt;0&lt;/hotelOccupancyTax&gt;
              &lt;nativeCurrencyCode&gt;USD&lt;/nativeCurrencyCode&gt;
              &lt;NativeNightlyRates size="1"&gt;
                &lt;nativeNightlyRate&gt;168.91&lt;/nativeNightlyRate&gt;
              &lt;/NativeNightlyRates&gt;
              &lt;nativeRoomRate&gt;185.57&lt;/nativeRoomRate&gt;
              &lt;rateFrequency&gt;B&lt;/rateFrequency&gt;
            &lt;/RateInfo&gt;
          &lt;/HotelProperty&gt;
          &lt;hotelUrl&gt;
  http://booking.rated-hotels.co.uk/index.jsp?pageName=hotAvail&amp;cid=409870&amp;hotelID=188139&amp;mode=2&amp;numberOfRooms=1&amp;room-0-adult-total=2&amp;room-0-child-total=0&amp;arrivalMonth=9&amp;arrivalDay=11&amp;departureMonth=9&amp;departureDay=12&amp;showInfo=true&amp;locale=en_US&amp;currencyCode=USD&amp;mcicid=409870.HOTEL.XML.85419
          &lt;/hotelUrl&gt;
        &lt;/Hotel&gt;
  
      &lt;/HotelAvailabilityListResults&gt;
    &lt;/Destination&gt;
  &lt;/DestinationResults&gt;
  </code></pre>
  
  <p>and my Xslt is as below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;!-- Edited by XMLSpy® --&gt;
  &lt;html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE"&gt;
  
      &lt;xsl:for-each select="DestinationResults"&gt;
      &lt;xsl:for-each select="Destination"&gt;
      &lt;xsl:for-each select="HotelAvailabilityListResults"&gt;
      &lt;xsl:for-each select="Hotel"&gt;
  
        &lt;div style="background-color:teal;color:white;padding:4px"&gt;
          &lt;span style="font-weight:bold"&gt;&lt;xsl:value-of select="name"/&gt;&lt;/span&gt;
          - &lt;xsl:value-of select="city"/&gt;
        &lt;/div&gt;
        &lt;div style="margin-left:20px;margin-bottom:1em;font-size:10pt"&gt;
          &lt;p&gt;&lt;xsl:value-of select="shortDescription"/&gt;.
          &lt;span style="font-style:italic"&gt;
            &lt;xsl:value-of select="address1"/&gt; 
          &lt;/span&gt;.&lt;/p&gt;
        &lt;/div&gt;
      &lt;/xsl:for-each&gt;
      &lt;/xsl:for-each&gt;
      &lt;/xsl:for-each&gt;
      &lt;/xsl:for-each&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>