### EPUB CFI Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/epubcfi/index.html
An example of an EPUB CFI pointing to a specific location within a document, demonstrating path and range syntax.
```text
epubcfi(/6/14[chap05ref]!/4[body01]/10/2/1:3[2^[1^]])
```
--------------------------------
### EPUB ConformsTo Meta Tag Example
Source: https://github.com/w3c/epub-specs/blob/main/wg-notes/a11y-exemption/index.html
This example shows the 'dcterms:conformsTo' meta tag, often used in conjunction with accessibility declarations.
```html
none
```
--------------------------------
### EPUB Encryption Data Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Example of encrypted data within an EPUB package, specifying encryption method and key retrieval.
```xml
```
--------------------------------
### Pronunciation Lexicon for Japanese
Source: https://github.com/w3c/epub-specs/blob/main/wg-notes/tts/index.html
An example of a pronunciation lexicon file using the IPA alphabet to define the pronunciation for the term 'EPUB'.
```xml
EPUB
ipʌb
…
```
--------------------------------
### Multilingual EPUB Rendition Mapping Example
Source: https://github.com/w3c/epub-specs/blob/main/wg-notes/multi-rend/index.html
This example illustrates rendition mapping for a multilingual EPUB, where each language is in a separate rendition. It shows how to link chapters across different language versions of the publication.
```html
```
--------------------------------
### EPUB container.xml Example
Source: https://context7.com/w3c/epub-specs/llms.txt
Defines the entry point for an EPUB, specifying the location of the package document. The full-path attribute is relative to the ZIP root.
```xml
```
--------------------------------
### EPUB `file-as` Metadata Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/vocab/meta-property.html
Use the `file-as` property to provide a normalized form of a creator's name for sorting purposes.
```xml
…
Lewis Carroll
Carroll, Lewis
…
```
--------------------------------
### HTML Audio Element with Remote Resource
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Example of an HTML audio element referencing a resource hosted on the web.
```html
…
…
…
```
--------------------------------
### HTML Audio Element with Local Resource
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Example of an HTML audio element referencing a resource located within the EPUB container.
```html
…
…
…
```
--------------------------------
### EPUB Container XML Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
This XML structure defines the container file for an EPUB, specifying the location and media type of the package document.
```xml
```
--------------------------------
### EPUB Structure with Roles
Source: https://github.com/w3c/epub-specs/blob/main/epub33/a11y-tech/index.html
Example of how EPUB content documents are typically structured with roles for parts and chapters, including unique identifiers for accessibility.
```html
…
…
```
--------------------------------
### EPUB 3.0 Package File (OPF) Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/explainers/EPUB33-explainer.md
This XML snippet demonstrates the structure of an EPUB 3.0 package file (OPF), including metadata, manifest, and spine.
```xml
Moby-Dick
1851-10-21
Herman Melville
urn:isbn:978000000000
2021-10-14T00:00:00Z
en
Ishmael takes an entry-level job processing seafood, but his supervisor’s disregard for safety leads to the liquidation of the business.
```
--------------------------------
### Complete EPUB Metadata for Access Modes
Source: https://github.com/w3c/epub-specs/blob/main/epub33/a11y-tech/index.html
This example shows the complete set of `schema:accessMode` and `schema:accessModeSufficient` entries for an EPUB publication with both textual and visual content, and sufficient textual alternatives.
```html
textual
visual
textual,visual
textual
```
--------------------------------
### Package Document Link Element Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Example of a 'link' element within the package document's metadata section, associating an XHTML resource with a specific media type and language.
```xml
…
…
…
```
--------------------------------
### Magazine Rendition Mapping Example
Source: https://github.com/w3c/epub-specs/blob/main/wg-notes/multi-rend/index.html
This example demonstrates a rendition mapping for a magazine with text, portrait, and landscape renditions. It shows how to map specific pages and articles across these different formats.
```html
```
--------------------------------
### EPUB Landmarks Guide Element (EPUB 2)
Source: https://github.com/w3c/epub-specs/blob/main/epub33/a11y-tech/index.html
The guide element was used in EPUB 2 to define landmarks. While deprecated in EPUB 3, it may still be encountered in older publications.
```html
```
--------------------------------
### EPUB `group-position` Metadata Example (Series)
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/vocab/meta-property.html
For series, `group-position` can use decimal-separated numbers to denote volume and issue. This example shows a publication as volume 98, issue 4 of 'Physical Review D'.
```xml
…
Physical Review D
series
98.4
…
```
--------------------------------
### Pseudocode Sample 2: Simple/Basic Index
Source: https://github.com/w3c/epub-specs/wiki/Indexes-Working-Group
This pseudocode provides a basic structure for a simple index, suitable for general content where straightforward term-to-page mapping is needed.
```pseudocode
index "Simple Index"
{
"Apple"
"Varieties"
"Fuji"
"Gala"
"Nutritional Value"
"Banana"
"Cherry"
"Sweet Cherries"
"Tart Cherries"
}
```
--------------------------------
### EPUB `identifier-type` Metadata Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/vocab/meta-property.html
The `identifier-type` property specifies the nature of an identifier. When using a coded value, the `scheme` attribute should identify the source of the code list, as shown with the ONIX codelist 5 example for ISBN.
```xml
…
urn:isbn:9780101010101
15
…
```
--------------------------------
### EPUB CFI for Simple Range
Source: https://github.com/w3c/epub-specs/blob/main/epub33/epubcfi/index.html
This demonstrates the syntax for expressing a simple range between a start and end location within an EPUB publication using a parent path and subpaths.
```xml
epubcfi(P,S,E)
```
--------------------------------
### Metadata for a Book with Identifiers and Creator
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/vocab/meta-property.html
This example shows how to include various metadata elements such as identifiers, titles, languages, creators, and modification dates within an EPUB publication.
```xml
urn:uuid:A1B0D67E-2E81-4DF5-9E67-A64CBE366809
urn:isbn:9780101010101
15
urn:isbn:9780375704024
15
Norwegian Wood
main
en
Haruki Murakami
aut
村上 春樹
Murakami, Haruki
2011-01-01T12:00:00Z
```
--------------------------------
### EPUB `group-position` Metadata Example (Set)
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/vocab/meta-property.html
The `group-position` property, when used with `belongs-to-collection` of type 'set', indicates the publication's order within that set. This example shows a publication as the second item in 'The Lord of the Rings' set.
```xml
…
The Lord of the Rings
set
2
…
```
--------------------------------
### SMIL Document Structure for Media Overlays
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Demonstrates a SMIL document with a 'body' containing multiple 'par' elements, each linking a text fragment to a specific segment of an audio file.
```xml
```
--------------------------------
### EPUB Collection Element Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Defines a related group of resources using the collection element with a role and links to resources.
```xml
```
--------------------------------
### Media Overlay Document (SMIL 3.0)
Source: https://context7.com/w3c/epub-specs/llms.txt
Synchronizes audio clips with text fragments using SMIL 3.0 markup. Pairs audio with specific text sections for narration.
```smil
```
--------------------------------
### HTML Image Tag Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Illustrates the use of a relative URL for an image located in the same directory as the XHTML content document.
```html
…
…
```
--------------------------------
### Alternate Generic Reference Sample
Source: https://github.com/w3c/epub-specs/wiki/Indexes-Working-Group
This sample demonstrates an alternative approach to generic cross-references within an index, showing how to link to related concepts or terms.
```pseudocode
index "Alternate Generic Ref Sample"
{
"Term A"
"Related Term B"
"See also: Term C"
"Term B"
"See: Related Term B"
"Term C"
}
```
--------------------------------
### Link Element for MARC Record
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Example of a 'link' element in the metadata section associating a MARC record with its specified media type.
```xml
…
…
```
--------------------------------
### EPUB Package Metadata Example
Source: https://github.com/w3c/epub-specs/blob/main/epub33/core/index.html
Illustrates the structure of the `metadata` element within an EPUB package document, including required Dublin Core elements and a `dcterms:modified` property.
```xml
…
urn:uuid:A1B0D67E-2E81-4DF5-9E67-A64CBE366809
Norwegian Wood
en
2011-01-01T12:00:00Z
…
```