Hello,

<rentalProperties>
    <property available="yes" contact="0455 455 014">
        <type>apartment</type>
        <price>500</price>
    <address>
        <streetNo>15</streetNo>
        <street>Armadale Street</street>
        <suburb>Armadale</suburb>
        <state>VIC</state>
        <ZipCode>3143</ZipCode>
    </address>
    <numberofBedrooms>2</numberofBedrooms>
    <numberofBathrooms>1</numberofBathrooms>
    <garage>1</garage>
    <description>Top floor 2 bed Apartment in a Leafy Street with 2 carspaces</description>
    </property>
</rentalProperty>

I have to transform this into xml format using xslt. The address should be separated by comma, and zipcode shouldnt be included.
Can you help me out?

should look like the result

Please an example

 <rentalProperties>
        <property available="yes" contact="0455 455 014">
            <type>apartment</type>
            <price>500</price>
        <address>
            <streetNo>15</streetNo>
            <street>Armadale Street</street>
            <suburb>Armadale</suburb>
            <state>VIC</state>
            <ZipCode>3143</ZipCode>
        </address>
        <numberofBedrooms>2</numberofBedrooms>
        <numberofBathrooms>1</numberofBathrooms>
        <garage>1</garage>
        <description>Top floor 2 bed Apartment in a Leafy Street with 2 carspaces</description>
        </property>
    </rentalProperty>

where is the orgin xml
you show me the output xml?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.