|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Some more stuff about selecting unique elements
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
|
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
|

Cart








