xmlname

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package xmlname holds the XML Name productions.

They live in their own leaf package because two packages need them and neither may import the other: xdm exports them to the sibling parsers, and internal/xmlfork — the forked encoding/xml tokeniser — resolves its name check through them. A tokeniser that imported xdm would close a cycle, since xdm is what drives the tokeniser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNameRune

func IsNameRune(r rune) bool

func IsNameStartRune

func IsNameStartRune(r rune) bool

isNameStartRune and isNameRune are the XML NameStartChar and NameChar productions of XML 1.0 fifth edition, transcribed.

The ranges are written out rather than approximated by "anything above Latin-1". The difference matters: NameStartChar deliberately excludes the combining marks and the digits, so U+0E35 THAI CHARACTER SARA II is a legal character *within* a name and an illegal one to begin it. A schema language that gets this wrong accepts names no conforming parser will produce.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL