[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL Button Template
Your template does not have any instructions to put any values anywhere. For example, you are creating an attribute named "href", but you are specifying no value for it. Also, it appears that you are passing in several parameters that you are not picking up in the button template - you are only declaring a <name> parameter, and the template will ignore any others you give it. Next time, please show us the output that you want to create - simplified as far as possible - and the source xml you want to start with. It would also help if you showed the actual incorrect results you are getting - again, simplify everything down to the essentials. Cheers, Tom P <zendezine@xxxxxxxxxx> said - > I have created a button template to be used throughout my site. > > <xsl:template name="button"> > <xsl:param name="name"></xsl:param> > <xsl:attribute name="href"></xsl:attribute> > <xsl:attribute name="target"></xsl:attribute> > ... > When I call the template, the link will not work. The template is also > called into screens with form input links. As I am an XSL Newbie, (kind of > obvious) I would appreciate any ideas from you pros out there. XSL Rules!! > > > <a> > <xsl:attribute > name="href">javascript:newButtonSubmit('new_form',<xsl:value-of > select="/finder_results/form_attributes/@current"/>);</xsl:attribute> > <xsl:call-template name="buttont"> > <xsl:with-param name="label">test</xsl:with-param> > <xsl:with-param name="width">100</xsl:with-param> > </xsl:call-template> > </a> > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|