I have a problem I'm looking to solve with XSLT, but I'm a bit stumped at how to implement the syntax.

I basically have a XML file with a structure narrowed down to this:
Code:
<ITEM>
 <NAMEVALUE>
  <NAME>From1</NAME>
  <VALUE>From1 Value</VALUE>
 </NAMEVALUE>
 <NAMEVALUE>
  <NAME>From2</NAME>
  <VALUE>From2 Value</VALUE>
 </NAMEVALUE>
 <NAMEVALUE>
  <NAME>Price1</NAME>
  <VALUE>Price1 Value</VALUE>
 </NAMEVALUE>
 <NAMEVALUE>
  <NAME>Price2</NAME>
  <VALUE>Price2 Value</VALUE>
 </NAMEVALUE>
 .
 .
 .
 .
</ITEM>
(I can't change the format of the delivered file).

I would like to transform it into something equivalent to:
Code:
<Prices>
 <Price from="From1 Value">Price1 Value</Price>
 <Price from="From2 Value">Price2 Value</Price>
</Prices>
I am running scripts in my XSLT file, and can most likely fix it using scripts but I was wondering if it would be possible to either use more pure XSL syntaxt to solve this problem.

Any advice?