xmlname

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/xmltok — the tokeniser xdm drives — 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