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

Re: How do you set the action attribute for an HTML fo

Subject: Re: How do you set the action attribute for an HTML form using XSLT?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 2 Apr 2003 18:36:37 +0100
action attribute ie
since you're using so much d-o-e anyway (and probably generating jsp was
a reason for having d-o-e in the language in the first place) it's
probably not worth generating elements and attribute nodes at all:

ie instead of

    <form method="get">

    <xsl:attribute name="action" saxon:disable-output-escaping="yes" 
xmlns:saxon="http://icl.com/saxon">
      <xsl:text>&lt;&#37;&#61;request.getRequestURI()&#37;&gt;</xsl:text>
    </xsl:attribute>

do


<xsl:text disable-output-escaping="yes"><![CDATA[
  <form method="get" action="<%=request.getRequestURI()%25>">
  <%Date d = new Date();%>
...
</form>
]]></xsl:text>

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.