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; } }
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); } }
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.transformFile = transform; this.logger = new XmlTransformationLogger(logger); xmlTransformation = new XmlFileInfoDocument(); if (isTransformAFile) { xmlTransformation.Load(transform); } else { xmlTransformation.LoadXml(transform); } InitializeTransformationServices(); PreprocessTransformDocument(); }