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
       });
 }
示例#2
0
 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
       });
 }
示例#4
0
 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
     });
 }
示例#5
0
 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();
 }
示例#7
0
 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();
 }
示例#8
0
 private void ReleaseLogger()
 {
     if (this.logger == null)
         return;
     this.logger.CurrentReferenceNode = (XmlNode)null;
     this.logger = (XmlTransformationLogger)null;
 }