Subject: Re: [xsl] Correct use of Parameters? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 04 Sep 2002 17:11:42 -0400 |
I'm using 2 parameters (probably could have used xsl:variables...) to store values that are referenced more than once while performing XSLT. My question is: Is this more efficient (better practice) than walking the nodes each time?
<INPUT ID="userID" TYPE="TEXT" NAME="txtUserID" SIZE="8" MAXLENGTH="8" TABINDEX="1"> <xsl:attribute name="value"><xsl:value-of select="$userID"/></xsl:attribute> </INPUT>
<INPUT ID="userID" TYPE="TEXT" NAME="txtUserID" SIZE="8" MAXLENGTH="8" TABINDEX="1" value="{$userID}"/>
One more thing...Is there a better way to write this? <xsl:value-of select="/RouteCodeMaintLookup/RouteCodeList/RouteCodeItem/Team/BusinessUnit/ @businessUnitName"/>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Correct use of Parameters?, Lopez, William | Thread | RE: [xsl] Correct use of Parameters, Lopez, William |
[xsl] Correct use of Parameters?, Lopez, William | Date | RE: [xsl] can I give xsl:number a s, Jeff Rosler |
Month |