[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|