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?

Recommended Answers

should look like the result

Please an example

Jump to Post

All 3 Replies

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