Tags in fetch-news are case-sensitive #1095
Labels
No Label
bug
build
cgi Scripting
design
disruptive
documentation
duplicate
easy
feature-request
help wanted
javascript
priority/low
question
system-hackers
tagging
text
translations
wait/bugfix
wait/inprogress
wait/misc
wait/proofread
wontfix
xsl
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FSFE/fsfe-website#1095
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I noticed a bug with the fetch-news template.
Example:
/activities/radiodirective/radiodirective.xsl
calls fetch-news with the paramtag
"RadioDirective".This however only includes news that have exactly this form of the tag as
<tag>
, so "radiodirective" or "Radiodirective" would not work. That's not good!I tried to fix this in
/tools/xsltsl/tagging.xsl
by introducing something like (I shortened the actual code to make it clearer):However, that does not work, it just does not match any news any more. I suspect that this is because
tags/tag
does exist more than once, and the translation does not work. So it just seems to take the first tag (which often is front-page), but in the actual test it seems to compare all nodes.I have no idea how to make this possible without unnecessarily looping over all news and all tags...
@reinhard or @jzarl, can you come to the rescue? ;)
I'm working on #826 right now and in the course of this conversion, I converted all tag keys to lowercase. I think with the new tag syntax, it would be easier to understand that keys should be all lowercase, so let's try to keep it this way rather than complicate the XSL scripts by adding case conversions.