xsl-list
[Top] [All Lists]

Re: walking a tree

2003-06-05 08:22:49

On Donnerstag, Juni 5, 2003, at 04:40  Uhr, David Carlisle wrote:



       <object>
         <name>apple</name>
         <size>2</size>
         <id>1</id>
       </object>
       <object>
         <name>orange</name>
    ....

    i would like to literaly create a tree out of this data.

You mean you want to take that document and grow an orchard?
I fear that is a transformation too far, even for XSLT...

actually im pretty close to have it done..

i have a named template which takes the current object node and
the display node as a argument..

now there is only one problem. it can look like this...

...
<display>
  <property field="name" />
  <text> -- </text>
  <property field="size" />
</display>


it would be perfectly fine if there would be only property nodes in the
display...



arg. and the output should look like::

apple - 2
   orange - 5

orange - 5


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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