Hello. I need to use VBScript to create HTML output. The following simplified
example
shows a call from the XSL into a VBScript function which generates some HTML
output. I receive an error from IE5 stating:
"Keyword xsl:script may not contain TR"
I receive this error for _any_ tags that I try to include returning from the
script. I've
tried to wrap the text in <![CDATA[...]]> tags but this, of course, spits out
the literal
strings as output. I feel I am missing something basic and obvious. I've
checked
the archive for a similar problem but could not find one. Any ideas?
<xsl:template match="SAMPLETAG">
<TABLE>
<xsl:eval>CreateRow()</xsl:eval>
</TABLE>
</xsl:template>
<xsl:script language="VBScript">
Function CreateRow()
CreateRow = "<TR><TD>Cell</TD></TR>"
End Function
</xsl:script>
-Jonathan
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|