This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Outputting HTML tags from VB Script within XSL file
- To: XSL-List at mulberrytech dot com
- Subject: Outputting HTML tags from VB Script within XSL file
- From: Jonathan_Berry at hyperion dot com
- Date: Sun, 6 Aug 2000 17:13:57 -0400
- Reply-To: xsl-list at mulberrytech dot com
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