[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Performance problem
<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 ________________________________________________________________________
|
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
|