convert elements based on place in document
hi all,
i have a document with 7 recurring elements, the problem is they all have the same name/attributes.
is there a possibility to 'rename' them according to their place in the document ?
the first element of the recurring cyclus always has the same text. e.g. "start"
sourcefile :
<par>start</par>
<par>random text1</par>
<par>random text2</par>
<par>random text3</par>
<par>random text4</par>
<par>start</par>
<par>random text5</par>
...
endfile :
<element1>start</element1>
<element2>random text1</element2>
<element3>random text2</element3>
<element4>random text3</element4>
<element5>random text4</element5>
<element1>start</element1>
<element2>random text5</element2>
can this be done in xslt ?
thanx in advance
|