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?

Re: XML to XML transformation 80 80

should look like the result

Please an example

Re: XML to XML transformation 80 80
 <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>
Re: XML to XML transformation 80 80

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.