How to alter the shortcode rendering for RSS output format?

Another (failed) experiment ([SOLVED] Current Output Format):

rss.xml:

  {{ .Scratch.Set "isRSS" "true" }}
  {{ range (where .Data.Pages "Section" "!=" "")  }}{{ if not .Draft }}
  <item>
    <title>{{ .Title }}</title>
    <link>{{ .Permalink }}</link>
    <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
    {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
    <guid>{{ .Permalink }}</guid>
    <description>{{ .Content | html }}</description>
  </item>
  {{ end }}{{ end }}

shortcode.html:

    {{ $.Page.Scratch.Get "isRSS" }}

The Scratch is also empty inside a shortcode.

Also found this thread: Page context in shortcodes

UPDATE: This is why Scratch doesn’t work: Use .Scratch (or other params) in a shortcode