This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Ridiculous XPath expression, can I reduce it?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Ridiculous XPath expression, can I reduce it?
- From: Nick Vincent <Nick at Neoworks dot com>
- Date: Tue, 3 Apr 2001 15:17:16 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@nag.co.uk]
> Sent: 03 April 2001 14:14
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] 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