[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Some more stuff about selecting unique elements

Subject: Re: Some more stuff about selecting unique elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 10 Apr 2001 13:51:08 +0100
stuff to do in carlisle

shouldn't you be using preceding-sibling rather than using preceding
and then checking on the id of the parent?

Also <xsl:copy is usually safer than   <xsl:element name="{name()}">
and .//stuff would apparently be better as stuff (unless  your documents
are more complicated than shown.)

> Well, the problem i dislike the preceding axis is performance, 
well yes, but preceding-sibling would be more fun, and in either case
you could probably optimise using xsl:key if needed.

> What optimisations do XSL processors (read: Saxon) while processing this
> XSL?
In his talk at the weekend MK suggested that authors write their
stylesheets assuming no optimisation is done (even though they do do
dome)

> I suppose in XSLT 1.1 (2.0) where RTFs are gone 
I'll let Jeni tell you about that....


All (?) existing systems let you query into a RTF using an explicit
coersion to a node set (xt saxon. msxsl, xalan etc all have a node-set()
function in theor extension namespace)

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.