xsl-list
[Top] [All Lists]

Re: For-each loop or recursion

2005-05-16 02:08:26

   "legal XPath expression that selects all elements called myarray that
   have a child element called i."

  Iam sure Dave had his reasons for his above statement. 

The main one being that this is what the Xpath selects.


  Below is my  understanding of the problem.


  myarray[i] selects the i'th myarray child of the context node. So if your
  xml looks like this:


You have guessed here that "myarray" is to be taken literally as the
part of the Xpath but "i" is not part of the XPath but a meta-variable
that is just part of the email message and should be replaced by a
number. It's possible that that's what the original poster meant but
it's not what he said.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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