private void LoadMsScript(NsDecl stylesheetNsList)
{
ContextInfo ctxInfo = _input.GetAttributes(_scriptAttributes);
ctxInfo.nsList = MergeNamespaces(ctxInfo.nsList, stylesheetNsList);
string scriptNs = null;
if (_input.MoveToXsltAttribute(0, "implements-prefix"))
{
if (_input.Value.Length == 0)
{
ReportError(/*[XT_009]*/SR.Xslt_EmptyAttrValue, "implements-prefix", _input.Value);
}
else
{
scriptNs = _input.LookupXmlNamespace(_input.Value);
if (scriptNs == XmlReservedNs.NsXslt)
{
ReportError(/*[XT_036]*/SR.Xslt_ScriptXsltNamespace);
scriptNs = null;
}
}
}
if (scriptNs == null)
{
scriptNs = _compiler.CreatePhantomNamespace();
}
string language = ParseStringAttribute(1, "language");
if (language == null)
{
language = "jscript";
}
if (!_compiler.Settings.EnableScript)
{
_compiler.Scripts.ScriptClasses[scriptNs] = null;
_input.SkipNode();
return;
}
throw new PlatformNotSupportedException("Compiling JScript/CSharp scripts is not supported"); // Not adding any scripts as script compilation is not available
}