xsl-list
[Top] [All Lists]

Re: [xsl] Searching in Sub-children from an Array

2006-12-07 08:45:23
Houman Khorasani wrote:

  Hi

2) I don't know if the thing above is possible at all, but
even if so, XML Mapping seems to be a bit slow, so I though
as an alternative solution, I could produce the <Steps>
with a proper XPATH like this:

              <Steps>//*[(_at_)ID='111']//*[(_at_)ID='333']</Steps>

  This is not possible in plain XSLT.  In this case, there is a simpler
solution, that is listing the IDs as you shown before.

  But sometimes it is convenient/required to put XPath expressions in
the document.  The solution is then to see the document as a
meta-stylesheet, and generate with XSLT a stylesheet with it.  This
generated stylesheet will be in its turn runned to produce the desired
result.

  I do that every day in my work.

  Regards,

--drkm





















        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.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>
--~--