I use WSO2 ESB 4.8.1 and I want to transform JSON to XML, but default transformation is not enough for me. I have this input (transform) XML:

```
 <?xml version="1.0" encoding="UTF-8"?>
              <locations>  
  <location>
      <id>7eaf7</id>
      <name>Biaggio Cafe</name>
      <tags>bar,restaurant,food,establishment</tags>
   </location>
   <location>
      <id>3ef98</id>
      <name>Doltone House</name>
      <tags>food,establishment</tags>
   </location>
      </locations>  

```

I want to get this:

```
<?xml version="1.0" encoding="UTF-8"?>
    <Entries items="2">
    <Item idx = "0">
      <id>7eaf7</id>
          <name>Biaggio Cafe</name>
          <tags>bar,restaurant,food,establishment</tags>
    </Item>
    <Item idx = "1">
          <id>3ef98</id>
          <name>Doltone House</name>
          <tags>food,establishment</tags>
    </Item>
    </Entries>

```

Is it possible to do this with XSLT? Maybe there is other way to do this?