xsl-list
[Top] [All Lists]

Re: self::x:* in XPath 2.0

2004-07-13 06:04:36


How do I do this?  I can't see any way of using the self::x syntax with $e
as I did before...

You should be able to use self:: exactly as before, your for-each loop
looks OK to me as xslt1 or 2.

If you want to use for you could do

for $e in * return
if ($e/self::x:*) then
'in'
else
'out'

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________


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