anchor.diff:      |> xslCompiledTransform.Load
       xslCompiledTransform
   
  -/// Transforms a XmlDocument using a XslCompiledTransform
  +/// Transforms a XmlDocument using a XslCompiledTransform.
  +/// ## Parameters
  +/// 
  +///  - `xsl` - The XslCompiledTransform which should be applied.
  +///  - `doc` - The XmlDocument to transform.
   let XslTransform (xsl:XslCompiledTransform) (doc:XmlDocument) =
       use memoryStream = new MemoryStream()
       use textWriter = new XmlTextWriter(memoryStream, new UTF8Encoding(false))
  
positive.code:     XPathReplaceNS xpath value namespaces doc
      |> fun x -> x.Save fileName
  
  /// Loads the given text into a XslCompiledTransform
  let XslTransformer text =
      if isNullOrEmpty text then null else
      let xslCompiledTransform = new XslCompiledTransform()
  
negative.code:     |> outputDoc.LoadXml
      outputDoc
  
  /// Transforms a XML file using a XSL stylesheet file.
  /// ## Parameters
  /// 
  ///  - `stylesheetUri` - The Uri for the XSL stylesheet file.
  ///  - `fileName` - The XML file to transform.
  let XmlTransform (stylesheetUri:string) (fileName:string) =
      let doc = new XmlDocument()
      doc.Load fileName
      let xsl = new XslCompiledTransform()
      xsl.Load stylesheetUri
      XslTransform xsl doc
      |> fun x -> x.Save fileName