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

Fix JSON-LD generation for single & chunked HTML #622

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Mar 27, 2024

  • Introduce "handle-json-ld" named template that handles both single and regular HTML
  • Introduce xsl:choose inside json-ld-headline to handle the different cases better

* Check for $content != '' instead of just $content
* datePublished checks now ancestor nodes too to avoid distracting
  warning message
* categories for DC Dublin Core
@tomschr tomschr added format-html html, xhtml, html5, webhelp, jsp support topic-metadata Issues that deals with meta data information labels Mar 27, 2024
@tomschr tomschr self-assigned this Mar 27, 2024
@tomschr tomschr marked this pull request as ready for review March 27, 2024 16:10
@tomschr tomschr changed the title Fix JSON-LD generation for single & regular HTML Fix JSON-LD generation for single & chunked HTML Mar 27, 2024
* Create "handle-json-ld" named template that handles both single and
  chunked HTML
* Introduce xsl:choose inside json-ld-headline to handle the different
  cases better
@tomschr tomschr merged commit d4fd140 into main Mar 27, 2024
1 of 2 checks passed
@tomschr tomschr deleted the metadata-warnings branch March 27, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format-html html, xhtml, html5, webhelp, jsp support topic-metadata Issues that deals with meta data information
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant