Below is my sample input XML file that will be used for the transformation. Need to be an XML output after the transformation

```
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test1">
    <title>Hide your heart</title>
    <artist>Bonnie Tyler</artist>
    <country>UK</country>
    <company>CBS Records</company>
    <price>9.90</price>
    <year>1988</year>
  </cd>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test2">
    <title>Greatest Hits</title>
    <artist>Dolly Parton</artist>
    <country>USA</country>
    <company>RCA</company>
    <price>9.90</price>
    <year>1982</year>
  </cd>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test1">
    <title>Still got the blues</title>
    <artist>Gary Moore</artist>
    <country>UK</country>
    <company>Virgin records</company>
    <price>10.20</price>
    <year>1990</year>
  </cd>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test2">
    <title>Eros</title>
    <artist>Eros Ramazzotti</artist>
    <country>EU</country>
    <company>BMG</company>
    <price>9.90</price>
    <year>1997</year>
  </cd>
</catalog>

```

I need to write a XSL transformer so I can loop through only catalog/cd which has xsi:type="test1"

Output XML should be like below

```
<catalog>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test1">
    <title>Hide your heart</title>
    <artist>Bonnie Tyler</artist>
    <country>UK</country>
    <company>CBS Records</company>
    <price>9.90</price>
    <year>1988</year>
  </cd>
  <cd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="test1">
    <title>Still got the blues</title>
    <artist>Gary Moore</artist>
    <country>UK</country>
    <company>Virgin records</company>
    <price>10.20</price>
    <year>1990</year>
  </cd>
</catalog>

```

Any help is much appreciated.

Cheers