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

Re: Problem with html input type and xsl

Subject: Re: Problem with html input type and xsl
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 21 Mar 2001 18:56:31 +0000
xslt html input hidden
Consider

	select="hidden"

v.

	select="'hidden'"

one selects the value of any <hidden/> children  of the current context,
the other selects the string 'hidden'.

Francis.


Ciaran Byrne wrote:
> 
> Use <xsl:attribute name="INPUT"><xsl:value-of
> select="hidden"/></xsl:attribute>
> 
> Your way outputs a text node "HIDDEN", it doesn't set the value of the
> attribute
> node.
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Armand
> Delcros
> Sent: Wednesday, March 21, 2001 6:41 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: alexandra.lang@xxxxxxxxxxxx
> Subject:  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

 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.