Example #1
0
 /// <summary>
 /// Loads XSLT stylesheet from <see cref="XmlReader"/>, with given settings and resolver.
 /// Wraps the reader if character maps are supported.
 /// </summary>
 protected void LoadStylesheetFromReader(XmlReader reader, XsltSettings settings, XmlResolver resolver)
 {
     if (supportCharacterMaps)
     {
         CharacterMappingXmlReader cmr = new CharacterMappingXmlReader(reader);
         this.compiledTransform.Load(cmr, settings, resolver);
         this.characterMap = cmr.CompileCharacterMapping();
     }
     else
     {
         this.compiledTransform.Load(reader, settings, resolver);
     }
 }
Example #2
0
 /// <summary>
 /// Loads XSLT stylesheet from <see cref="XmlReader"/>, with given settings and resolver.
 /// Wraps the reader if character maps are supported.
 /// </summary>        
 protected void LoadStylesheetFromReader(XmlReader reader, XsltSettings settings, XmlResolver resolver)
 {            
     if (supportCharacterMaps)
     {
         CharacterMappingXmlReader cmr = new CharacterMappingXmlReader(reader);
         this.compiledTransform.Load(cmr, settings, resolver);
         this.characterMap = cmr.CompileCharacterMapping();
     }
     else
     {
         this.compiledTransform.Load(reader, settings, resolver);
     }            
 }
 /// <summary>
 /// /// Creates new instance of the <see cref="CharacterMappingXmlWriter"/>
 /// with given base <see cref="XmlWriter"/> and <see cref="CharacterMappingXmlReader"/>.
 /// </summary>
 /// <remarks>
 /// <see cref="CharacterMappingXmlReader"/> paramter is used to get character mapping
 /// information.
 /// </remarks>
 public CharacterMappingXmlWriter(CharacterMappingXmlReader reader, XmlWriter baseWriter)
     : base(baseWriter)
 {
     this.reader = reader;
 }
 /// <summary>
 /// /// Creates new instance of the <see cref="CharacterMappingXmlWriter"/>
 /// with given base <see cref="XmlWriter"/> and <see cref="CharacterMappingXmlReader"/>.
 /// </summary>
 /// <remarks>
 /// <see cref="CharacterMappingXmlReader"/> paramter is used to get character mapping
 /// information.
 /// </remarks>
 public CharacterMappingXmlWriter(CharacterMappingXmlReader reader, XmlWriter baseWriter) 
     : base (baseWriter) 
 {
     this.reader = reader;
 }