Example #1
0
		/// <summary>
		/// Registers the extensions objects in the specified
		/// transformation arguments to a new HelperTransformationBuilder.
		/// </summary>
		/// <param name="arguments">The arguments.</param>
		/// <returns></returns>
		internal static HelperTransformationBuilder BuildTransformationHelper(XsltTransformationArguments arguments)
		{
			HelperTransformationBuilder hp = new HelperTransformationBuilder();

			foreach (object exO in arguments.ExtensionObjects)
			{
				hp.AddType(exO.GetType());
			}
			return hp;
		}
Example #2
0
        /// <summary>
        /// Registers the extensions objects in the specified
        /// transformation arguments to a new HelperTransformationBuilder.
        /// </summary>
        /// <param name="arguments">The arguments.</param>
        /// <returns></returns>
        internal static HelperTransformationBuilder BuildTransformationHelper(XsltTransformationArguments arguments)
        {
            HelperTransformationBuilder hp = new HelperTransformationBuilder();

            foreach (object exO in arguments.ExtensionObjects)
            {
                hp.AddType(exO.GetType());
            }
            return(hp);
        }
		/// <summary>
		/// Initializes a new instance of the HelperTransformationResolver class.
		/// </summary>
		/// <param name="helpers"></param>
		public HelperTransformationResolver(IXsltTemplateResolver resolver, HelperTransformationBuilder helpers)
		{
			_TemplateResolver = resolver;
			_Helper = helpers;
		}
Example #4
0
 /// <summary>
 /// Initializes a new instance of the HelperTransformationResolver class.
 /// </summary>
 /// <param name="helpers"></param>
 public HelperTransformationResolver(IXsltTemplateResolver resolver, HelperTransformationBuilder helpers)
 {
     _TemplateResolver = resolver;
     _Helper           = helpers;
 }