Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

XSLT stylesheet does not display custom elements #152

@pbiron

Description

@pbiron

Description

The XSLT stylesheet only displays the <loc> and <lastmod> elements (and <lastmod> is proposed to be removed in #145).

Should the stylesheet be modified to display additional columns If a plugin adds additional child elements of <url> (e.g., <priority> or something in another namespace)?

While the content rendered by the stylesheet will not affect sitemap consumers, users/site owners/etc might want to see the additional content (if only to verify that custom elements they've added to the sitemaps are actually there).

Describe the solution you'd like

Adding column headers to the table for all child elements of <url> that appear anywhere within the sitemap is not hard (using a convention like uppercase the first letter of any element name that is not <loc>, <lastmod>, <changefreq> or <priority>).

Outputting the element content in the correct columns if, say, a <foo> child exists for 1st, 3rd, 5th <url> elements and a <bar> child exists for the 2nd, 4th, 6th <url> elements is not so easy.

I'm pretty good at XSLT so I can probably figure out how to do it, but want to make sure it would be desirable before I spend any time on it.

This would definitely be low priority, but would be nice to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementEnhancement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions