RE: [xsl] Problem with html input type and xsl

Subject: RE: [xsl] Problem with html input type and xsl
From: "Dylan Walsh" <Dylan.Walsh@xxxxxxxxxx>
Date: Wed, 21 Mar 2001 16:02:45 -0000
As an aside you may find the following form:

<xsl:template match="SUPPORT">
	  <xsl:for-each select="SUPPORTTYPE">
            <INPUT TYPE="HIDDEN" NAME="ssupport" VALUE="{NAMESUPPORT}"
/>
	  </xsl:for-each>
</xsl:template> 

.. is more concise and easier to follow. The last attribute uses an
'Attribute Value Template', which performs
the same function as the xsl:value-of in your code.

> -----Original Message-----
> From:	Armand Delcros [SMTP:armand@xxxxxxxxxxxxx]
> Sent:	Wednesday, March 21, 2001 2:41 PM
> To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc:	alexandra.lang@xxxxxxxxxxxx
> Subject:	[xsl] Problem with html input type and xsl
> 
<snip>

> <xsl:template match="SUPPORT">
> 	  <xsl:for-each select="SUPPORTTYPE">
> 	  	<xsl:element name="INPUT">
> 	  		<xsl:attribute name="TYPE">
> 	 		 HIDDEN
> 	 		</xsl:attribute>
> 	 		 <xsl:attribute name="NAME">
> 			  ssupport
> 			  </xsl:attribute>
> 			  <xsl:attribute name="VALUE">
> 	 		 <xsl:value-of select="NAMESUPPORT"/>
> 	  		</xsl:attribute>
> 	  	</xsl:element>
> 	  </xsl:for-each>
> </xsl:template> 
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread