If the <year> element contains something like
then the resulting HTML file will show:
This doesn't look like intended output.
Logged In: YES
Actually, this is a documentation problem. You turned on the make.year.ranges stylesheet parameter, but that only works when you put each year into a separate year element, which is permitted by the copyright element:
When that parameter is set, these elements are handled as numbers and ranges can be computed. The parameter does not parse a complex year element to reform it into ranges.
So either enter your range literally and turn off make.year.ranges, or enter multiple year elements and turn on make.year.ranges. The doc will be fixed.
Logged In: YES
Thanks for the explanation. This was already my understanding of the parameter. But in this special case, I have a DocBook XML, that inbounds several XML files from third parties and their use of the <year> tag is different.
So I would like to request a more robust handling of the <year> tag in such a case. What about a check, if the <year> tag contains "-" or "," if yes, simply don't try to compute a range for this element (leave them as is), even if that means, that something like
will be output?
A fix for this issue has been added to the current codebase.
Please test the fix with the latest snapshot from:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.