internal static void WarnIfMultipleTargets(XmlTransformationLogger log, string transformName, XmlNodeList targetNodes, bool applyTransformToAllTargets) { if (targetNodes.Count <= 1) return; log.LogWarning("Found multiple target elements, but the '{0}' Transform only applies to the first match", new object[1] { (object) transformName }); }
private void ReleaseLogger() { if (this.logger == null) { return; } this.logger.CurrentReferenceNode = (XmlNode)null; this.logger = (XmlTransformationLogger)null; }
internal static void ExpectNoArguments(XmlTransformationLogger log, string transformName, string argumentString) { if (string.IsNullOrEmpty(argumentString)) return; log.LogWarning("{0} does not expect arguments; ignoring", new object[1] { (object) transformName }); }
internal static void WarnIfMultipleTargets(XmlTransformationLogger log, string transformName, XmlNodeList targetNodes, bool applyTransformToAllTargets) { if (targetNodes.Count <= 1) { return; } log.LogWarning("Found multiple target elements, but the '{0}' Transform only applies to the first match", new object[1] { (object)transformName }); }
internal static void ExpectNoArguments(XmlTransformationLogger log, string transformName, string argumentString) { if (string.IsNullOrEmpty(argumentString)) { return; } log.LogWarning("{0} does not expect arguments; ignoring", new object[1] { (object)transformName }); }
public XmlTransformation(string transform, bool isTransformAFile, IXmlTransformationLogger logger) { this.transformFile = transform; this.logger = new XmlTransformationLogger(logger); this.xmlTransformation = (XmlDocument)new XmlFileInfoDocument(); if (isTransformAFile) this.xmlTransformation.Load(transform); else this.xmlTransformation.LoadXml(transform); this.InitializeTransformationServices(); this.PreprocessTransformDocument(); }
public XmlTransformation(string transform, bool isTransformAFile, IXmlTransformationLogger logger) { this.transformFile = transform; this.logger = new XmlTransformationLogger(logger); this.xmlTransformation = (XmlDocument) new XmlFileInfoDocument(); if (isTransformAFile) { this.xmlTransformation.Load(transform); } else { this.xmlTransformation.LoadXml(transform); } this.InitializeTransformationServices(); this.PreprocessTransformDocument(); }
private void ReleaseLogger() { if (this.logger == null) return; this.logger.CurrentReferenceNode = (XmlNode)null; this.logger = (XmlTransformationLogger)null; }