xsl-list
[Top] [All Lists]

[xsl] extracting data from an element

2009-02-03 06:39:35
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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>