I'm generating an XSLT document programatically in
VB.Net. I'm then trying to apply that XSLT against a cXML
document to generate my own internally developed XML
document. I'm using RichTextBox controls to dump out the
XSLT, cXML and internal XML.
The following code works fine in Visual Studio 2002.
However, after upgrading to VS 2003, this same code no
longer works
I'm declaring a variable "xslt" as a new XSLTransform.
Dim xslt As XslTransform = New XslTransform
I'm then calling the "Load" method of the "xslt" to load
the XSLT from my RichTextBox control:
xslt.Load(rtbXSLT.Text)
That generates the following exception:
"Invalid URI: The URI scheme is not valid."
Here is an example of a XSLT document that I'm creating
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output encoding="UTF-8" method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:element name="SSXML">
<xsl:element name="Order">
<xsl:value-of select="//OrderRequestHeader/Comments"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Has anyone else encountered this? If so, what did you do
to fix it? Again, I did not have this problem in VS 2002.