TS15Sitemaps and freshness
Sitemaps. Controlled files.
Guide · Sitemap limits
Measure uncompressed sitemaps, count their entries and check indexes. An example of splitting beyond 50,000 URLs.
Sitemap size and segmentation limits are respected.
- The control
- TS15 · Sitemap limits
- Prepare
- Indexes and XML or gzip files
- In the app
- Available workflows
Understand
Sitemap limits
The key distinctions.
A .gz download size is insufficient to check a sitemap limit. Examine uncompressed content and count elements at the correct level. TS15 checks declared files and coverage without confusing that result with listed pages’ SEO validity.
- Page sitemap
- A urlset file containing url entries. URL count and uncompressed bytes are separate limits.
- Sitemap index
- A sitemapindex file listing child files; its own volume must also be checked.
Check
Measure XML.
Count the correct entries.
Sitemap limits : method and evidence
The measurement script below uses Python 3 and its standard library on a local UTF-8 XML or gzip file. It measures bytes and direct children; it does not produce a TSEP status.
Retain the original index and child files. Save the script as measure-sitemap.py and record python3 --version. Work on local copies, not a file still being generated.
Run python3 measure-sitemap.py sitemap.xml.gz, or use an .xml filename. Keep output or error with the file and its digest.
Compare bytes_uncompressed and direct_url or direct_sitemap with the limits separately. If the read bound is exceeded, size is already above the limit but count has not been measured.
Measure each child and the index, then reconcile references with the expected inventory. After splitting, compare the loc set to identify accidental omissions or duplicates.
Measure without confusing lines with XML entries
import gzip, pathlib, sys, xml.etree.ElementTree as ET
path = pathlib.Path(sys.argv[1])
bound = 52_428_800
opener = gzip.open if path.suffix == ".gz" else open
with opener(path, "rb") as stream:
data = stream.read(bound + 1)
if len(data) > bound:
raise SystemExit("More than 52428800 uncompressed bytes; count not measured")
text = data.decode("utf-8-sig")
if "<!DOCTYPE" in text.upper() or "<!ENTITY" in text.upper():
raise SystemExit("DTD/entity declarations outside this measurement example")
root = ET.fromstring(text)
ns = "{http://www.sitemaps.org/schemas/sitemap/0.9}"
kinds = {ns + "urlset": "url", ns + "sitemapindex": "sitemap"}
if root.tag not in kinds:
raise SystemExit("Unsupported root or namespace")
kind = kinds[root.tag]
count = sum(child.tag == ns + kind for child in root)
print("bytes_uncompressed=" + str(len(data)))
print("direct_" + kind + "=" + str(count))<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://example.com/sitemap-1.xml</loc></sitemap>
<sitemap><loc>https://example.com/sitemap-2.xml</loc></sitemap>
</sitemapindex>For this index, direct_sitemap is 2. The script does not download children: supply and measure them separately. Byte count depends on the exact saved file, including its line endings.
Reading is bounded to 50 MiB plus one byte; DTD/entity declarations are rejected in this example. This script is neither a complete XSD validator, the TSEP engine nor a check of listed URLs. Retain any reading or syntax error.
sitemap.xml: 62,000 url entries
Uncompressed size: 18 MB
Count above the limitsitemap-products-1.xml: 40,000 URLs
sitemap-products-2.xml: 22,000 URLs
Index: 2 references; sizes checked separatelyThis illustrative split meets the count limit. Each file still needs measuring and its references checked against the planned set.
Which evidence should you keep?Show the evidenceHide the evidence
Original files, uncompressed measurements, attributed counts, tool/version, bounds, index list and child coverage.
Continue in TSEP Control
Prepare the evidence described in this guide. The application shows available workflows and required inputs: a control’s presence in the catalogue does not mean its automatic assessment is available.
Open TSEP ControlAct
Split the file.
Preserve the population.
Oversized file
Split by stable families or controlled volumes, then update the index. Compression does not remove the uncompressed limit.
Approximate counting
Use a suitable XML parser. Counting lines or every loc tag can mix pages, indexes and extensions.
Missing child
Restore the file or correct the index according to scope. Keep a missing capture unknown until its situation is established.
Who acts: Development and sitemap-pipeline owner.
Recheck
New files.
Same URL set.
Measure every produced file, including the index, and compare their loc values with the previous set. Having more files alone does not prove a correct split.
Measure every newly produced file after splitting.
Compare the URL set before and after to identify accidental loss or duplication.
Sitemap limits : your questions
Does gzip allow exceeding the limit?
No. Size is assessed on the uncompressed file; entry count is also bounded. Reference.
Does an index replace checking its children?
No. It references them. Each still needs checking, and missing files must be identified in coverage. Reference.
To go further.
Statuses, sources and method.
Understand the statusesC · NC · NT · NA
Each status depends on the control’s evidence and rules. It applies to the assessed scope without certifying the entire website.
- C · Conforming
- The applicable rules are evidenced within the declared scope. Read this control’s scope: C certifies neither the whole site nor a search engine outcome.
- NC · Nonconforming
- Attributable evidence contradicts an applicable expectation. An unknown on another point does not erase that contradiction.
- NT · Not tested or inconclusive
- Required evidence, context or review is missing or unresolved. The detailed rules specify the conditions for a conclusion.
- NA · Not applicable
- No sitemap used in scope.
Sources and references2 references
Detailed method and rules3 rules
Complete protocol wording v0.3.0-draft.9. The practical guide and normative criteria are separate. Your report identifies the engine version used.
TS15 — Sitemap size and segmentation limits are respected.
- When it applies
- Declared population of supplied native sitemap files; roots are not automatically discovered.
- Expectation
- Within the bounded profile: qualified UTF-8 and minimal structure, at most52,428,800 bytes and50,000 direct entries per file, coverage of the declared set.
- Evidence to retain
- Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.
- How to check
- Read original bytes, base XML structure, decompressed size, direct entries and index children in the declared set.
- Non-applicability
- No sitemap used in scope.
- Limitations
- Supplied files only, no observed server or site completeness. No full XSD, lastmod/changefreq/priority values, URL host/path/length, canonical or indexing validation.
- Outcome clarification
- C requires all expectations across the declared scope. NC requires evidenced contradiction; otherwise NT. NA requires evidence of non-applicability.
- Reference scope
- Technical reference; the TSEP acceptance rule remains an editorial proposal.
- Required inputs (protocol identifiers)
- sitemap, intent
TS15-A01 — Encoding and minimal structure of supplied files.
- When it applies
- Declared population of supplied native sitemap files; roots are not automatically discovered.
- Expectation
- Every complete file passes the bounded structure; established structural contradiction fails.
- Evidence to retain
- Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.
- How to check
- Check strict UTF-8,0.9 root, unique nonempty loc and unique ordered leaves; DTD/unqualified extensions stay unknown.
- Assumptions
- Supplied URL, date, origin and completeness, unauthenticated. No server observation.
- Inconclusive outcome
- Missing/ambiguous file, incomplete stream, unknown profile, reader bound, nested index or unqualified extension; independent violation retained.
- Non-applicability
- No NA in this profile.
- Limitations
- Supplied files only, no observed server or site completeness. No full XSD, lastmod/changefreq/priority values, URL host/path/length, canonical or indexing validation.
- Required inputs (protocol identifiers)
- sitemap, intent
TS15-A02 — Actual size and population limits.
- When it applies
- Declared population of supplied native sitemap files; roots are not automatically discovered.
- Expectation
- Each file is at most52,428,800 bytes and50,000 entries; observed excess fails, partial reading without excess is inconclusive.
- Evidence to retain
- Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.
- How to check
- Count actually decompressed bytes and direct url/sitemap elements, including duplicates and entries without loc.
- Assumptions
- Supplied URL, date, origin and completeness, unauthenticated. No server observation.
- Inconclusive outcome
- Missing/ambiguous file, incomplete stream, unknown profile, reader bound, nested index or unqualified extension; independent violation retained.
- Non-applicability
- No NA in this profile.
- Limitations
- Supplied files only, no observed server or site completeness. No full XSD, lastmod/changefreq/priority values, URL host/path/length, canonical or indexing validation.
- Required inputs (protocol identifiers)
- sitemap, intent
TS15-A03 — Coverage of declared population and bound children.
- When it applies
- Declared population of supplied native sitemap files; roots are not automatically discovered.
- Expectation
- All declared documents and branches are qualified; absence/ambiguity/outside-profile is inconclusive, never negative evidence about site sitemap use.
- Evidence to retain
- Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.
- How to check
- Bind each document to an exact declared URL and each index child to a complete leaf; roots and scope remain declared.
- Assumptions
- Supplied URL, date, origin and completeness, unauthenticated. No server observation.
- Inconclusive outcome
- Missing/ambiguous file, incomplete stream, unknown profile, reader bound, nested index or unqualified extension; independent violation retained.
- Non-applicability
- No NA in this profile.
- Limitations
- Supplied files only, no observed server or site completeness. No full XSD, lastmod/changefreq/priority values, URL host/path/length, canonical or indexing validation.
- Required inputs (protocol identifiers)
- sitemap, intent
Origin and scope
Sources.
A clear framework.
Distinguish technical references, TSEP criteria and this guide’s version.
This reference describes the mechanism and its limits. It is separate from TSEP criteria and does not validate your configuration.
The expectations, evidence and limits reproduced in this guide. This proposal by Edikka is versioned and published under CC BY 4.0; it is not a Google certification.