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

RE: using xsl attribute tags

Subject: RE: using xsl attribute tags
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 6 Nov 2003 22:42:47 -0000
attribute tags
It is very unlikely to make any significant difference to performance.
The first approach may take a few microseconds longer to compile. If you
have a performance problem, you need to look elsewhere for a solution.
If you don't, why are you worrying?

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mark Ivs
> Sent: 06 November 2003 17:07
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  using xsl attribute tags
> 
> 
> Hello,
>    I have two ways of adding a textfield in my xsl
> file. I have listed them below. Can anyone please tell
> me, which is a better approach performance vice ? I am
> using saxon.
>    I have hundreds of these text fields on my page so
> little performance improvement will help me.
> 
> FIRST:   
> <input>
> <xsl:attribute name="name">
> <xsl:value-of select="../@NAME"/>
> </xsl:attribute>
> <xsl:attribute name="id">
> <xsl:value-of select="../@NAME"/>
> </xsl:attribute>
> <xsl:attribute name="title">
> <xsl:value-of select="../@TITLE"/>
> </xsl:attribute>
> <xsl:attribute name="type">text</xsl:attribute>
> <xsl:attribute name="size">10</xsl:attribute>
> <xsl:attribute name="value">
> <xsl:value-of select="COL/SIZE"/>
> </xsl:attribute>
> </input>
> 
> SECOND:
> <input name="{../@NAME}" id="{../@NAME}"
> title="{../@TITLE}" type="text" size="10"
> value="{COL/SIZE}"/>
> 
> Thanks for the help.
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard 
> http://antispam.yahoo.com/whatsnewfree
> 
>  XSL-List info and 
> archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.