[xsl] extracting data from an element

Subject: [xsl] extracting data from an element
From: Mike Stroud <stroudmw@xxxxxxxxx>
Date: Tue, 3 Feb 2009 13:39:08 +0200
Hello everyone,

Today I have a different problem. How do I extract data from an
element? for example if I have something that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<DIMENSIONS>
  <DIMENTION> T=60 896 x 476</DIMENTION>
  <DIMENTION> T=160 89 x 46</DIMENTION>
</DIMENSIONS>

into something like this:

<?xml version="1.0" encoding="UTF-8"?>
<DIMENSIONS>
  <DIMENTION>
    <Length>60</Length>
    <Width>896></Width>
    <Mass>476></Mass>
  </DIMENSION>
  <DIMENTION>
    <Length>160</Length>
    <Width>89></Width>
    <Mass>46></Mass>
  </DIMENSION>
</DIMENSIONS>

I'm learning a lot here. Many thanks for the assistance you've given me so far.

Cheers,

Mike.

Current Thread