xsl-list
[Top] [All Lists]

RE: [xsl] [XSLT]: Recursive Function to Add/Multiply

2006-10-09 02:21:15
I have the following XML file, which represents expressions 
with "+" and "*"

artihmentic operands:
<m value="10">
  <i value="5"/>
  <m value="10">
     <i value="2"/>
     <i value="2"/>
     <i value="2"/>
  </m>
</m>

It seems an odd choice of notation. How would you represent

(2+3) * (5+6)

Why the asymmetry between <m> and <i> elements? - m elements have the second
operand as a child, i elements have the second operand as a following
sibling.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>