xsl-list
[Top] [All Lists]

How do you set the action attribute for an HTML form using XSLT?

2003-03-31 15:48:22
Hi.  I'm trying to transform XML into an HTML/JSP page.
I've followed the suggestion at 
http://www.dpawson.co.uk/xsl/sect2/N1553.html#d1670e229

using:

<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>

and have tried mine:

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

but neither seem to work for the action attribute of the
HTML form tag.  My way and the suggestion seem to work fine
with say the input tag.  I've tried all sorts of variations,
but I just can't get it to work.

This is what I get:

  <form method="get" action="<%25=request.getRequestURI()%25>">

And of course I'd like:

  <form method="get" action="<%=request.getRequestURI()%>">

What am I missing or is this truely a bug?

Thanks,

Ricardo J. Castillo
roadster9(_at_)lycos(_dot_)com




_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>