Skip to content
EPUBCheck · Resources and references

RSC-015

Updated:

EPUBCheck RSC-015 is a usage message: “A fragment identifier is required for svg use tag references.” An SVG use element references a file without a fragment identifier; it must point to a specific element with #id.

The official message

A fragment identifier is required for svg use tag references.

Default severity
Usage. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.
EPUBCheck version
5.4.0

Typical causes

  • A use element written as <use href="icons.svg"/> instead of <use href="icons.svg#star"/>.

How to fix it

  • Add the id of the element to reuse at the end of the reference.

Terms used here

Other RSC messages

  • RSC-016 Fatal Error while parsing file: …
  • RSC-013 Fragment identifier is used in a reference to a stylesheet resource.
  • RSC-017 Warning while parsing file: …
  • RSC-012 Fragment identifier is not defined.
  • RSC-011 Found a reference to a resource that is not a spine item.
  • RSC-010 Reference to non-standard resource type found.

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.

FAQ

What does EPUBCheck RSC-015 mean?

EPUBCheck RSC-015 is a usage message: “A fragment identifier is required for svg use tag references.” An SVG use element references a file without a fragment identifier; it must point to a specific element with #id.

Is RSC-015 an error?

RSC-015 is reported as usage by default. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.