Re: [xsl] Ridiculous XPath expression, can I reduce it?

Subject: Re: [xsl] Ridiculous XPath expression, can I reduce it?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 3 Apr 2001 14:14:24 +0100
can't you just go

<xsl:template match="input.form">
 <xsl:for-each select="*[not(self::input.form or self::input.link)]">
...


> Once I've processed an <input.form> element I mark it with a 'done'
> attribute to stop it being processed again (trust me on that one).

No I don't trust that at all! XSLT has a read-only input tree.
Ypur posted Xpath was looking at done attributes in the source tree, so
it couldn't reflect processing that had been done with this stylesheet
(unless you are using some extension function somewhere)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

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


Current Thread