Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 322767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:58:09+00:00 2026-05-12T08:58:09+00:00

I have some questions , because i am not good in XSLT… For example,

  • 0

I have some questions , because i am not good in XSLT…

For example, I have 3 types of xml from three companies

XML 1 (Company 1) file1.xml

<HotelList name="Company1">
   <Hotel><HotelCode>C1004</HotelCode>

                 <HotelName>Hotel 4</HotelName>

                <Price>100</Price>

   </Hotel>
    <Hotel><HotelCode>C1001</HotelCode>

                <HotelName>Hotel 1</HotelName>

                <Price>20</Price>

   </Hotel>
   <Hotel><HotelCode>C1003</HotelCode>

                <HotelName>Hotel 3</HotelName>

                <Price>15</Price>

   </Hotel>
   <Hotel><HotelCode>C1002</HotelCode></HotelList>

               <HotelName>Hotel 2</HotelName>

                <Price>10</Price>

   </Hotel>

XML 2 (Company 2) file2.xml

<HotelList name="Company2">
    <Hotel><HotelCode>C2002</HotelCode>

               <HotelName>Hotel Two</HotelName>

                <PriceList><Price>15</Price></PriceList>

   </Hotel>
   <Hotel><HotelCode>C2005</HotelCode>

                 <HotelName>Hotel Five</HotelName>

                 <PriceList><Price>100</Price></PriceList>

   </Hotel>
   <Hotel><HotelCode>C2003</HotelCode>

                <HotelName>Hotel Three</HotelName>

                <PriceList><Price>7</Price></PriceList>

   </Hotel>
   <Hotel><HotelCode>C2004</HotelCode>

                 <HotelName>Hotel Four</HotelName>

                <PriceList><Price>99</Price></PriceList>

   </Hotel>


   <Hotel><HotelCode>C2001</HotelCode>
</HotelList>

                <HotelName>Hotel One</HotelName>

                <PriceList><Price>10</Price></PriceList>



 </Hotel> 

XML 3 (Company 3) file3.xml

<HotelList name="Company2">
    <Hotel><HotelCode>13 </HotelCode>

                <HotelName>Hotel One</HotelName>

                <Rates><PriceList><Price>11</Price></PriceList></Rates>

   </Hotel>
   <Hotel><HotelCode>23</HotelCode>

               <HotelName>Hotel Two</HotelName>

               <Rates><PriceList><Price>8</Price></PriceList></Rates>

   </Hotel>
     <Hotel><HotelCode>53</HotelCode>

                 <HotelName>Hotel Five</HotelName>

                <Rates><PriceList><Price>100</Price></PriceList></Rates>

   </Hotel>

  <Hotel><HotelCode>63</HotelCode>

                 <HotelName>Hotel Six</HotelName>

                <Rates><PriceList><Price>120</Price></PriceList></Rates>

   </Hotel>
  <Hotel><HotelCode>33</HotelCode>

                <HotelName>Hotel Three</HotelName>

               <Rates><PriceList><Price>7</Price></PriceList></Rates>

   </Hotel>
   <Hotel><HotelCode>43</HotelCode>

                 <HotelName>Hotel Four</HotelName>

               <Rates><PriceList><Price>85</Price></PriceList></Rates>

   </Hotel>


</HotelList>

1) Here the xml, Hotel’s ids are not in order way

2) Hotel id and hotel names is not a constant one

3) If hotel id is not constant, there is any need for create a sql table for keeping constant id? Some thing like this

HotelName             HotelCode          NewHotelName          NewHotelCode

Hotel 1                    C1001               Hotel-1                           1

Hotel 2                    C1002               Hotel-2                           2

Hotel 3                    C1003               Hotel-3                           3

Hotel 4                    C1004               Hotel-4                           4

Hotel One                C2001               Hotel-1                           1

Hotel Two                C2002               Hotel-2                           2

Hotel Three              C2003               Hotel-3                           3

Hotel Four                C2004               Hotel-4                           4

Hotel Five                 C2005               Hotel-5                           5

Hotel One                 13                    Hotel-1                           1

Hotel Two                 23                    Hotel-2                           2

Hotel Three               33                    Hotel-3                           3

Hotel Four                 43                    Hotel-4                           4

Hotel Five                  53                    Hotel-5                           5

Hotel Six                    63                    Hotel-6                          6

3) My aim is that, to display less price hotels (with out duplicate) from these three xml’s

4) I need the result is

Hotel Name: Hotel-1

Hotel Code: C2001

Hotel New Code: 1

Price :10



Hotel Name: Hotel-2

Hotel Code: 23

Hotel New Code: 2

Price :8



Hotel Name: Hotel-3

Hotel Code: C1003

Hotel New Code: 3

Price :7



Hotel Name: Hotel-4

Hotel Code: 43

Hotel New Code: 4

Price :85



Hotel Name: Hotel-5

Hotel Code: C2005

Hotel New Code: 5

Price :100



Hotel Name: Hotel-6

Hotel Code: 63

Hotel New Code: 6

Price :120
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:58:09+00:00Added an answer on May 12, 2026 at 8:58 am

    Yes, see this reference for an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not very good at C yet so I have some questions. I have
i have some questions about constructors in ColdFusion : must i use the name
I have some questions about using MySQLi queries, and related memory management. Suppose I
I have some questions about the default values in a function parameter list Is
I have some questions which are as follows: How can I use the JSP
I have some questions about vector in STL to clarify..... Where are the objects
I have some questions about the registry. We have Preferences p = Preferences.userRoot(); If
I have some questions about the performance of this simple python script: import sys,
I actually have some questions (real childish). 1) If I know that a website
I am using Tomcat 6 and have some questions about Apache mod_jk as follows.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.