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

Re: Normalize / Simplify HTML-Tables with row-span / c

Subject: Re: Normalize / Simplify HTML-Tables with row-span / col-span
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 18 Feb 2004 12:52:29 GMT
normalize variable
> This means that elimination of node-set
> means impact on performance,

Whether the absence of RTF type in XSLT impacts on performance
presumably depends on what you were doing to get round the restriction
in XSLT1. 

As I don't really like using extension elements (even x:node-set()) for
portability reasons, I routinely go

<xsl:variable name="x">
 <stuff>
  <here/>
 </stuff>
</xsl:variable>

...

... select="document('')/*/xsl:variable[@name='x']/stuff/here" ..

which causes the entire stylesheet to be reparsed as an input document
and built as a node tree, just for me to extract this variable, not to
mention that on the original processing of the stylesheet the rtf
variable x was built never to be used at all.


I'm assuming that in XSLT2

 ... select="$x/stuff/here"

will be much more efficient.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.