D. Alvarado
Usenet Archive
- Joined
- Apr 25, 2002
- Messages
- 63
- Reaction score
- 0
Hello,
I am outputting HTML from an XSLT and I am having trouble setting the value of a form-action field based on certain conditions. Here is the non-working code:
<xsl:template match="dictionary-link[$no-dictionary = 'false']"> <form name="dictionaryform" method="get" action="<xsl:choose><xsl:when test="$var1=''">dictionary.jsp</xsl:when><xsl
therwise>dictionary.jsp</xsl
therwise></xsl:choose>" target="dictwin" onSubmit="dictwin=window.open('','dictwin','fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=300,height=400')"> <div class="dictionary-link"> <table width="100%"><tr> <td align="left" width="33%"> Look up a word </td> <td align="center" width="33%"> <input type="text" name="word" size="20"/> </td> <td align="right" width="33%"> <input type="image" alt="Go" border="0" src="gobutton.gif"/> </td> </tr></table> </div> </form> </xsl:template>
When I try and run the transform, things crash and burn because I'm told the value of the "action " attribute cannot contain "<". Can anyone suggest a work-around?
Thanks, -
I am outputting HTML from an XSLT and I am having trouble setting the value of a form-action field based on certain conditions. Here is the non-working code:
<xsl:template match="dictionary-link[$no-dictionary = 'false']"> <form name="dictionaryform" method="get" action="<xsl:choose><xsl:when test="$var1=''">dictionary.jsp</xsl:when><xsl
When I try and run the transform, things crash and burn because I'm told the value of the "action " attribute cannot contain "<". Can anyone suggest a work-around?
Thanks, -