/// <summary> /// Loads the transformation from the specified stream /// </summary> /// <param name="store">The store to be used when resolving includes in the xslt stylesheet</param> /// <param name="stream">The stream to load the transformation from.</param> /// <param name="arguments">The arguments to arguments to use in the transformation.</param> /// <returns></returns> public IXsltTransform LoadTransform(IXsltTemplateResolver resolver, System.IO.Stream stream, XsltTransformationArguments arguments) { XslCompiledTransform transformer = new XslCompiledTransform(); using (XmlReader reader = new XmlTextReader(stream)) { XsltSettings settings = new XsltSettings(false,false); transformer.Load(reader, settings, new HelperTransformationResolver(resolver, XsltTransform.BuildTransformationHelper(arguments))); } return new XsltTransform(transformer, this); }
/// <summary> /// Loads the transformation from the specified stream /// </summary> /// <param name="store">The store to be used when resolving includes in the xslt stylesheet</param> /// <param name="stream">The stream to load the transformation from.</param> /// <param name="arguments">The arguments to arguments to use in the transformation.</param> /// <returns></returns> public IXsltTransform LoadTransform(IXsltTemplateResolver resolver, System.IO.Stream stream, XsltTransformationArguments arguments) { XslCompiledTransform transformer = new XslCompiledTransform(); using (XmlReader reader = new XmlTextReader(stream)) { XsltSettings settings = new XsltSettings(false, false); transformer.Load(reader, settings, new HelperTransformationResolver(resolver, XsltTransform.BuildTransformationHelper(arguments))); } return(new XsltTransform(transformer, this)); }
private IXsltTransform CompileTransform(IXsltTemplateResolver resolver, Stream transformStream, XsltTransformationArguments arguments) { return(_xsltEngine.LoadTransform(resolver, transformStream, arguments)); }
/// <summary> /// Initializes a new instance of the HelperTransformationResolver class. /// </summary> /// <param name="helpers"></param> public HelperTransformationResolver(IXsltTemplateResolver resolver, HelperTransformationBuilder helpers) { _TemplateResolver = resolver; _Helper = helpers; }
private IXsltTransform CompileTransform(IXsltTemplateResolver resolver, Stream transformStream, XsltTransformationArguments arguments) { return _xsltEngine.LoadTransform(resolver, transformStream, arguments); }