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

Re: Performance problem

Subject: Re: Performance problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 Feb 2005 11:48:31 GMT
typo performance
	<item name=abc tim

maybe it's your mailer corrupted it but that isn't well formed. You can
only use " or ' to delimit attribute values not some character with byte
148 (which I think is some kind of smart quote in a windows code page)
It looks like  name=\224abc\224 in my mailer...


  <xsl:when test="$ cnt_bytes 

That's legal of course but I've never seen anyone put a space after the
$ before:-)

> 4. Do you think I should use xsl:template or xsl:function to format my 
> timestamp/bytes ?

Oh you are using xslt2? I don't think you mentioned that.
In that case you might find that it's quicker to coerce your attribute
to a data type and use the in built date handling functions to pull it a
part. (Or you might not find its quicker, but it's worth a try)

		<xsl:when test="$month = 9">Sen</xsl:when>
typo:-) 


Are you sure that the time is being taken up with the formatting or just
iterating over a very big file. Is it appreciably quicker if you change
to
<xsl:template name="format-date">
<xsl:param name="date-time" select="."/>
<xsl:value-of select="."/>
</xsl:template/>



David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

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.