This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
'&' as attribute-value ....problem
- To: XSL-List at mulberrytech dot com
- Subject: '&' as attribute-value ....problem
- From: "Muyen, Arjan van" <muyena at usoft dot nl>
- Date: Fri, 14 Apr 2000 13:51:36 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi,
i am trying to pass a value as a HTML-form url-parameter.
This syntax contains '&'
<Example output ::
<form action="XMLSelect.asp?mmode=forupdate&pk='id=1' "
method="post"
</Example output>
To output this with XT i wrote
<xsl:template match="/">
<STATEMENTS TO PROCESS MY TREE AND OUTPUT HTML>
....
</STATEMENTS TO PROCESS MY TREE AND OUTPUT HTML>
<form method="post">
<xsl:attribute name="action">
XMLSelect.asp?mmode=forupdate
<xsl:text disable-output-escaping="yes">&</xsl:text>
pk= '<xsl:value-of select="something"/>'
</xsl:attribute>
</form>
</xsl:template
this does NOT work (error : illegal use of disable-output-escaping)
This code is inside a file with normal html-output, so xt:output is not that
handy because i need xsl:output method="html".
Do i really have to do something like incl
There must be a solution however ... Anybody ?
Arjan van Muyen
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list