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

Subject: RE: [xsl] Problem with html input type and xsl
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Wed, 21 Mar 2001 15:37:22 -0000
Armand,
Change
<xsl:attribute name="TYPE">
	 		 HIDDEN
</xsl:attribute>
to
<xsl:attribute name="TYPE">HIDDEN</xsl:attribute>

<input defaults to type text. You are setting it to
"crlf                 HIDDENcrlf"
which is unrecognisable so it displays a text box.

Ciao Chris

XML/XSL Portal 
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Armand
>Delcros
>Sent: 21 March 2001 14:41
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Cc: alexandra.lang@xxxxxxxxxxxx
>Subject: [xsl] Problem with html input type and xsl
>
>
>Hello,
>
>I'm using a element name and attributes to generate a html code like
>this :
><input type=hidden name=foo value=foo>
>
>but with my xsl code generates always an input type=text instead of
>input type=hidden 
>
>here is the xml code :
>-------------------
><?xml version="1.0"?>
><?xml-stylesheet type="text/xsl" href="support_change2.xsl"?>
><SUPPORT>
><SUPPORTTYPE>
><IDSUPPORT>1</IDSUPPORT>
><NAMESUPPORT>Banner</NAMESUPPORT>
></SUPPORTTYPE>
></SUPPORT>
>------------------
>
>here is my xsl code :
>
><?xml version="1.0"?> 
><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
><xsl:template match="/">
><html>
><head>
><title>juriste.gif</title>
></head>
><body>
>Hello World
><xsl:apply-templates/>
></body>
></html>
></xsl:template>
>
><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:stylesheet>
>
>
> 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