# TS15 — Sitemap size and segmentation limits are respected.

> Practical guide and complete protocol wording; fictional examples, without a website assessment.

Version: 0.3.0-draft.9 — published draft release.

Commit: `d6a6e73f5c21d52131d3f4e39cde309d97385cbc`.

SHA-256 (spec/protocol.json): `3af55b64677ccd74d3ccfcc49f3dbf469c90fb214844fe13c5f10773a11d9041`.

Attribution: Edikka. Protocol text and data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

[Normative JSON source](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

[Canonical HTML control page](https://tsep-protocol.org/en/controls/TS15).

## Sitemaps. Controlled files.

Measure uncompressed sitemaps, count their entries and check indexes. An example of splitting beyond 50,000 URLs.

Editorial responsibility: Edikka. Guide updated 2026-10-28 · 2026-10-28.2

### 01 · Understand

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.

This profile’s native limits are 50,000 direct elements and 52,428,800 uncompressed bytes per file. Other SEO dimensions belong to separate checks.

- **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.

The Sitemaps protocol defines count and uncompressed-size ceilings. A file can meet one while exceeding the other. [Sitemaps XML protocol](https://www.sitemaps.org/protocol.html).

### 02 · Check — Measure XML. Count the correct entries.

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.

1. 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.
2. Run python3 measure-sitemap.py sitemap.xml.gz, or use an .xml filename. Keep output or error with the file and its digest.
3. 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.
4. 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

**Python script · local measurement, no network request**

```python
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))
```

**Minimal fictional index**

```xml
<?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.


#### Split 62,000 URLs

Fictional example, illustrative values.

Before

```text
sitemap.xml: 62,000 url entries
Uncompressed size: 18 MB
Count above the limit
```

After

```text
sitemap-products-1.xml: 40,000 URLs
sitemap-products-2.xml: 22,000 URLs
Index: 2 references; sizes checked separately
```

This illustrative split meets the count limit. Each file still needs measuring and its references checked against the planned set.

#### Evidence to retain

Original files, uncompressed measurements, attributed counts, tool/version, bounds, index list and child coverage.

#### Scope of the conclusion

This profile examines minimal XML structure and supplied files. It is not full XSD validation and does not check canonicals, lastmod or indexing.

#### 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.

[TSEP Control](https://app.tsep-protocol.org/?lang=en)

### 03 · Act — 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.

### 04 · 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.

1. Measure every newly produced file after splitting.
2. Compare the URL set before and after to identify accidental loss or duplication.

### Frequently asked questions

#### Does gzip allow exceeding the limit?

No. Size is assessed on the uncompressed file; entry count is also bounded. [Reference](https://www.sitemaps.org/protocol.html).

#### Does an index replace checking its children?

No. It references them. Each still needs checking, and missing files must be identified in coverage. [Reference](https://www.sitemaps.org/protocol.html).

### Statuses, sources and related controls

- **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.

- [Sitemaps XML protocol](https://www.sitemaps.org/protocol.html) · accessed 2026-10-28
- [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) · accessed 2026-10-28

- [TS13 — Examine URLs inside the files.](https://tsep-protocol.org/en/controls/TS13)
- [TS14 — Check declared dates.](https://tsep-protocol.org/en/controls/TS14)
- [TS41 — Automate generation checks.](https://tsep-protocol.org/en/controls/TS41)

---

## Complete protocol wording

Domain: Sitemaps and freshness.

Rule version: 0.2.0-rc.1.

## Required inputs

sitemap, intent

## Applicability

Declared population of supplied native sitemap files; roots are not automatically discovered.

## Procedure

Read original bytes, base XML structure, decompressed size, direct entries and index children in the declared set.

## 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

Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.

## 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.

## Atomic rules

### TS15-A01 — Encoding and minimal structure of supplied files.

#### Required inputs

sitemap, intent

#### Applicability

Declared population of supplied native sitemap files; roots are not automatically discovered.

#### Procedure

Check strict UTF-8,0.9 root, unique nonempty loc and unique ordered leaves; DTD/unqualified extensions stay unknown.

#### Expectation

Every complete file passes the bounded structure; established structural contradiction fails.

#### Evidence

Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.

#### 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.

### TS15-A02 — Actual size and population limits.

#### Required inputs

sitemap, intent

#### Applicability

Declared population of supplied native sitemap files; roots are not automatically discovered.

#### Procedure

Count actually decompressed bytes and direct url/sitemap elements, including duplicates and entries without loc.

#### Expectation

Each file is at most52,428,800 bytes and50,000 entries; observed excess fails, partial reading without excess is inconclusive.

#### Evidence

Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.

#### 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.

### TS15-A03 — Coverage of declared population and bound children.

#### Required inputs

sitemap, intent

#### Applicability

Declared population of supplied native sitemap files; roots are not automatically discovered.

#### Procedure

Bind each document to an exact declared URL and each index child to a complete leaf; roots and scope remain declared.

#### Expectation

All declared documents and branches are qualified; absence/ambiguity/outside-profile is inconclusive, never negative evidence about site sitemap use.

#### Evidence

Base64/SHA-256 originals, declared URLs/dates and set plan; native-sitemap-files-v1 bounds.

#### 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.

## References

- [https://www.sitemaps.org/protocol.html](https://www.sitemaps.org/protocol.html)
