if (calcName != null) {
int colonAt = calcName.IndexOf (':');
if (colonAt == 0)
- throw new XsltCompileException ("Invalid name attribute.", null, c.Input);
+ throw new XsltCompileException ("Invalid name attribute", null, c.Input);
calcPrefix = colonAt < 0 ? String.Empty : calcName.Substring (0, colonAt);
if (colonAt > 0)
calcName = calcName.Substring (colonAt + 1);
if (calcPrefix != String.Empty)
XmlConvert.VerifyNCName (calcPrefix);
} catch (XmlException ex) {
- throw new XsltCompileException ("Invalid name attribute.", ex, c.Input);
+ throw new XsltCompileException ("Invalid name attribute", ex, c.Input);
}
if (ns == null) {
calcNs = c.Input.GetNamespace (calcPrefix);
if (calcPrefix != String.Empty && calcNs == String.Empty)
- throw new XsltCompileException ("Invalid name attribute.", null, c.Input);
+ throw new XsltCompileException ("Invalid name attribute", null, c.Input);
}
} else if (ns != null)
calcNs = XslAvt.AttemptPreCalc (ref ns);