code: func (p DestinationPublisher) createTransformerChain(f Descriptor) transform.Chain {
  	transformers := transform.NewEmpty()
  
  	isHTML := f.OutputFormat.IsHTML
  
  	if f.AbsURLPath != "" {
  		if isHTML {
  			transformers = append(transformers, urlreplacers.NewAbsURLTransformer(f.AbsURLPath))
  		} else {
  			// Assume XML.
  			transformers = append(transformers, urlreplacers.NewAbsURLInXMLTransformer(f.AbsURLPath))
  		}
  	}
  
  	if isHTML {
  		if f.LiveReloadPort > 0 {
  			transformers = append(transformers, livereloadinject.New(f.LiveReloadPort))
  		}
  
  		// This is only injected on the home page.
  		if f.AddHugoGeneratorTag {
  			transformers = append(transformers, metainject.HugoGenerator)
  		}
  
  	}
  
  	if p.minify {
  		minifyTransformer := p.min.Transformer(f.OutputFormat.MediaType)
  		if minifyTransformer != nil {
  			transformers = append(transformers, minifyTransformer)
  		}
  	}
  
  	return transformers
  
  }
docs: // XML transformer := transform.New(urlreplacers.NewAbsURLInXMLTransformer(path))