Learning XSLT, and I would like to know if this transformation is possible
Input something like this
<book>
<title>Title 1</title>
<author>Author 1</author>
</book>
<book>
<title>Title 2</title>
<author>Author 2</author>
</book>
<book>
<title>Title 3</title>
<author>Author 3</author>
</book>
Output
<book1>
<title1>Title 1</title1>
<author1>Author 1</author1>
</book1>
<book2>
<title2>Title 2</title2>
<author2>Author 2</author2>
</book2>
<book3>
<title3>Title 3</title3>
<author3>Author 3</author3>
</book3>
What would the XSLT for this look like?
I've no idea why you would want to create such a horrible XML document, but if you must, you can do it using: