Subject: RE: Ridiculous XPath expression, can I reduce it?
From: Nick Vincent <Nick@xxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 15:17:16 +0100
|
This XPath actually comes from some Java code, so I am able to fiddle with
the nodes (I think I mentioned that earlier)...
Cheers,
Nick
> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 03 April 2001 14:14
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: Ridiculous XPath expression, can I reduce it?
>
>
>
> 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
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|