Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

erm,.. what does this code do? 1

Status
Not open for further replies.

birney29

Programmer
Oct 11, 2001
140
GB
<xsl:template match=&quot;LinkNames/Security&quot;>
<xsl:element name=&quot;input&quot;>
<xsl:attribute name=&quot;class&quot;>longButton</xsl:attribute>
<xsl:attribute name=&quot;type&quot;>button</xsl:attribute>
<xsl:attribute name=&quot;value&quot;><xsl:value-of select=&quot;securityLabel&quot;/></xsl:attribute>
<xsl:attribute name=&quot;onclick&quot;>grantDate.screenName=&quot;Grant Date&quot;;
expiryDate.screenName=&quot;Expiry Date&quot;;
issueDate.screenName=&quot;Issue Date&quot;;
initialGrantDate.screenName=&quot;Initial Grant Date&quot;;
printDate.screenName=&quot;Print Date&quot;;
grantDate.date=&quot;true&quot;;
expiryDate.date=&quot;true&quot;;
issueDate.date=&quot;true&quot;;
initialGrantDate.date=&quot;true&quot;;
printDate.date=&quot;true&quot;;submitNoVerify('<xsl:value-of select=&quot;Link/whereTo&quot;/>')</xsl:attribute>
</xsl:element> Kenneth Birney
User Interface Programmer
Scottish Police
 
that template will output something like


<input class=&quot;longButton&quot; type=&quot;button&quot; value=&quot;someserversidevalue&quot; onclick=&quot;allthatjavascriptcrap&quot;>


in other words it makes a button in an html form which then calls some javascript functions.

<xsl:element> creates the input element and the <xsl:attributes> fills in all the values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top