This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Ridiculous XPath expression, can I reduce it?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]