internal static void ExpectNoArguments(XmlTransformationLogger log, string transformName, string argumentString) { if (!String.IsNullOrEmpty(argumentString)) { log.LogWarning(Resources.XMLTRANSFORMATION_TransformDoesNotExpectArguments, transformName); } }
internal static void WarnIfMultipleTargets(XmlTransformationLogger log, string transformName, XmlNodeList targetNodes, bool applyTransformToAllTargets) { Debug.Assert(applyTransformToAllTargets == false); if (targetNodes.Count > 1) { log.LogWarning(SR.XMLTRANSFORMATION_TransformOnlyAppliesOnce, transformName); } }
private void ReleaseLogger() { if (logger != null) { logger.CurrentReferenceNode = null; logger = null; } }
internal static void ExpectNoArguments(XmlTransformationLogger log, string transformName, string argumentString) { if (!string.IsNullOrEmpty(argumentString)) { object[] messageArgs = new object[] { transformName }; log.LogWarning(SR.XMLTRANSFORMATION_TransformDoesNotExpectArguments, messageArgs); } }
internal static void WarnIfMultipleTargets(XmlTransformationLogger log, string transformName, XmlNodeList targetNodes, bool applyTransformToAllTargets) { if (targetNodes.Count > 1) { object[] messageArgs = new object[] { transformName }; log.LogWarning(SR.XMLTRANSFORMATION_TransformOnlyAppliesOnce, messageArgs); } }
private void ReleaseLogger() { if (this.logger != null) { this.logger.CurrentReferenceNode = null; this.logger = null; } }
internal static void WarnIfMultipleTargets(XmlTransformationLogger log, string transformName, XmlNodeList targetNodes, bool applyTransformToAllTargets) { Debug.Assert(applyTransformToAllTargets == false); if (targetNodes.Count > 1) { log.LogWarning(Resources.XMLTRANSFORMATION_TransformOnlyAppliesOnce, transformName); } }
public XmlTransformation(Stream transformStream, IXmlTransformationLogger logger) { this.transformationServiceContainer = new ServiceContainer(); this.logger = new XmlTransformationLogger(logger); this.transformFile = string.Empty; this.xmlTransformation = new XmlFileInfoDocument(); this.xmlTransformation.Load(transformStream); this.InitializeTransformationServices(); this.PreprocessTransformDocument(); }
public XmlTransformation(Stream transformStream, IXmlTransformationLogger logger) { this.logger = new XmlTransformationLogger(logger); this.transformFile = String.Empty; xmlTransformation = new XmlFileInfoDocument(); xmlTransformation.Load(transformStream); InitializeTransformationServices(); PreprocessTransformDocument(); }
public XmlTransformation(string transform, bool isTransformAFile, IXmlTransformationLogger logger) { this.transformationServiceContainer = new ServiceContainer(); this.transformFile = transform; this.logger = new XmlTransformationLogger(logger); this.xmlTransformation = 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); xmlTransformation = new XmlFileInfoDocument(); if (isTransformAFile) { xmlTransformation.Load(transform); } else { xmlTransformation.LoadXml(transform); } InitializeTransformationServices(); PreprocessTransformDocument(); }
internal static void ExpectNoArguments(XmlTransformationLogger log, string transformName, string argumentString) { if (!String.IsNullOrEmpty(argumentString)) { log.LogWarning(SR.XMLTRANSFORMATION_TransformDoesNotExpectArguments, transformName); } }
private void ReleaseLogger() { if (logger != null) { logger.CurrentReferenceNode = null; logger = null; } }