M
manlio
how can I load a XSL string (not an xsl file!!) with XslTransform ???
If I use the code:
// Create a new XslTransform class and load the stylesheet
XslTransform myXslTransform = new XslTransform();
myXslTransform.Load("myFile.xsl");
it run, but I need load an XSL string:
XslTransform myXslTransform = new XslTransform();
xslString='<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="urn:var"
xmlns:userVBScript="urn:userVBScript"
xmlns:userJScript="urn:userJScript" exclude-result-prefixes="msxsl var
userVBScript userJScript" version="1.0"><xsl
utput method="xml"
omit-xml-declaration="yes"/><xsl:template
match="/"><xsl:apply-templates
select="parameters"/>..........etc.etc.';
myXslTransform.Load(xslString);
and it doesn't run.
thanks,
manlio
If I use the code:
// Create a new XslTransform class and load the stylesheet
XslTransform myXslTransform = new XslTransform();
myXslTransform.Load("myFile.xsl");
it run, but I need load an XSL string:
XslTransform myXslTransform = new XslTransform();
xslString='<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="urn:var"
xmlns:userVBScript="urn:userVBScript"
xmlns:userJScript="urn:userJScript" exclude-result-prefixes="msxsl var
userVBScript userJScript" version="1.0"><xsl

omit-xml-declaration="yes"/><xsl:template
match="/"><xsl:apply-templates
select="parameters"/>..........etc.etc.';
myXslTransform.Load(xslString);
and it doesn't run.
thanks,
manlio