title: Access For each root atrribute in XSLT
body: <p>I am trying to access the for each node attribute using xslt. But It didn't work. need to print shrui value for each hotelroom. can any one help me on this???I</p>
  
  <p>Below is My XML Response.</p>
  
  <pre><code>   &lt;HotelRoom SHRUI="AqZE8Cw72fDfNL6X0hqQTQ==" availCount="10" onRequest="N"&gt;
                &lt;Board type="SIMPLE" code="BB-E10" shortname="BB"&gt;BED AND BREAKFAST&lt;/Board&gt;
                &lt;RoomType type="SIMPLE" code="SGL-E10" characteristic="ST"&gt;SINGLE STANDARD&lt;/RoomType&gt;
                &lt;Price&gt;
                  &lt;Amount&gt;549.360&lt;/Amount&gt;
                &lt;/Price&gt;
              &lt;/HotelRoom&gt;
  </code></pre>
  
  <p>Below is My XSLT.</p>
  
  <pre><code>  &lt;xsl:for-each select="hm:HotelRoom "&gt;
                  &lt;shrui&gt;
                    &lt;xsl:value-of select="hm:HotelRoom/@SHRUI"/&gt;
                  &lt;/shrui&gt;
                  &lt;board&gt;
                    &lt;xsl:value-of select="hm:Board"/&gt;
                  &lt;/board&gt;
                  &lt;roomtype&gt;
                    &lt;xsl:value-of select="hm:RoomType"/&gt;
                  &lt;/roomtype&gt;
                  &lt;roomcode&gt;
                    &lt;xsl:value-of select="hm:RoomType/@code"/&gt;
                  &lt;/roomcode&gt;
                  &lt;boardcode&gt;
                    &lt;xsl:value-of select="hm:Board/@code"/&gt;
                  &lt;/boardcode&gt;
                  &lt;xsl:for-each select="hm:Price "&gt;
                    &lt;amount&gt;
                      &lt;xsl:value-of select="hm:Amount"/&gt;
                    &lt;/amount&gt;
                  &lt;/xsl:for-each&gt;
                &lt;/xsl:for-each&gt;
  </code></pre>