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

Re: XSL Button Template

Subject: Re: XSL Button Template
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 19 Apr 2001 13:22:32 -0400
button xsl attribute
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


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.