Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML prolog lost from RSS template #1057

Closed
McSinyx opened this issue Oct 4, 2023 · 2 comments
Closed

XML prolog lost from RSS template #1057

McSinyx opened this issue Oct 4, 2023 · 2 comments
Labels

Comments

@McSinyx
Copy link
Contributor

McSinyx commented Oct 4, 2023

I want to make the feed human readable asking the browser to apply some XSLT, e.g. in _rss/head.xml

<?xml-stylesheet type="text/xsl" href="/assets/feed.xslt"?>

However, this line isn't present in the output feed.

@tlienart
Copy link
Owner

tlienart commented Oct 10, 2023

this

global_feed_head = replace(
global_feed_head,
r"(\/[a-zA-Z0-9\_-]+\.xsl)" => SubstitutionString("$pp\\1")
)
end

is the likely culprit. I'm not familiar with the syntax you quote but we could definitely have logic that skips <?...?>

Could you:

  1. copy paste the content of your _rss/head.html here
  2. show the head of the generated rss file that you got?

@tlienart tlienart added the rss label Oct 10, 2023
@McSinyx
Copy link
Contributor Author

McSinyx commented Oct 20, 2023

I cannot reproduce this, I think I followed the link to the production feed (and not the newly generated one). Sorry for the noise 😅

@McSinyx McSinyx closed this as not planned Won't fix, can't repro, duplicate, stale Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants