Summary

  • RFC 3151 took the SGML and XML public identifier — a character string full of slashes, double colons and stubborn whitespace — and transcribed it into a deterministic urn:publicid: form. A correct conversion proved that a name had been transformed, not that anyone owned it or that it resolved.
  • Equivalence was deliberately stingy: after normalization, two namespace URNs matched only if they were lexically identical. The same name never implied the same catalog, the same bytes or the same behaviour.
  • Resolution stayed plural — catalogs, local path maps, built-in knowledge, caches — so the resolver, the rule, the retrieval, the parser and the outcome each needed a receipt of its own.

A stubborn string walked into a URI-only world

An XML external entity introduced itself twice. The system identifier was a URI by definition — a location, a path, a place to go looking. The public identifier was something older and stranger: a character string inherited from SGML, meant to be the portable, durable name while the system identifier handled the grubby business of where the file actually sat.

For a while that division of labour held. Then the Web rewrote the rules. XSLT and XML Schema wanted external identifiers to be URIs, full stop, and a bare public-identifier string with its slashes and double colons did not fit through the door. RFC 3151, published in 2001, refused to throw the installed names away and refused to pretend every local path had become permanent. It built a bridge instead: a formal URN namespace called publicid, so an existing public identifier could be written in URI syntax.

The trap is that a URI-shaped string looks more authoritative than the thing it came from. The transcription handed an old name a transportable syntax. It did not hand it a new owner, a new guarantee or a new destination. If the source name was unregistered, or its naming policy was thin, the prefix repaired precisely nothing.

And the RFC was Informational. It did not specify an Internet standard. Its examples were teaching material, not guaranteed to be real. Those two sentences mark the boundary of the whole mechanism: a worked conversion demonstrates the algorithm, not a live namespace entry, a deployed catalog or a reachable file.

Normalization was a shredder with good manners

Before anything could be transcribed, the public identifier had to be normalized. Every run of space, tab, carriage return or line feed collapsed into one ordinary space, and leading and trailing whitespace vanished. RFC 3151 assumed the work was already done whenever it discussed encoding.

The rule made comparison reliable, and it was not lossless. Two source captures differing only by indentation, tabs or line breaks could produce the same normalized string. Once only the URN survived, their original layouts could not be reconstructed. The normalized name was a new evidence artifact, not a tidier rendering of the old one.

Spaces then became +. Because normalization collapsed runs first, adjacent plus signs generated from whitespace could not appear in a conforming output. A plus that genuinely existed in the source took a different road: %2B. The difference is tiny on a page and decisive in an audit. One plus records a normalized space; the other records a literal character.

So an implementation receipt should hold the original string, its character encoding, the normalized string, the rule version and the output bytes. A database that keeps only the final URN can compare names but cannot explain which whitespace was discarded, or whether normalization even preceded encoding.

The punctuation was load-bearing

SGML defined Formal Public Identifiers as a structured subset of the general string. A typical FPI joined an owner identifier, a public text class, a description, a language or designating sequence and an optional display version, with double slashes separating fields and double colons able to appear inside structured material. Owners often announced themselves with -// or +//.

RFC 3151 preserved that shape mechanically rather than semantically. // became :, and :: became ;. The translator was never asked to understand the FPI grammar or to work out where one field ended and the next began. Recognising a valid FPI was somebody else's problem.

That was a modest, deliberate compatibility choice, and it is exactly why the bridge worked: software could push structured-looking names through URI-only interfaces without dragging an SGML authority engine along behind it. It is also why the output proves so little. A colon inside a publicid URN is evidence that the source contained //. It is not evidence that the source was a valid FPI, that its owner was registered, or that its fields meant anything at all.

Literal characters had to stay distinguishable from structural ones. A literal colon outside :: became %3A; a literal slash outside // became %2F; a literal semicolon became %3B. Apostrophe, question mark, number sign and percent sign each got an escape. The algorithm kept a reversible line between punctuation the transcription invented and punctuation the name already carried.

Which means position matters as much as value. A careless global replace can swallow overlapping pairs in the wrong order, or mistake a literal separator for structure. Round-trip tests on representative normalized inputs are worth running — and a flawless round trip still certifies only the transcription layer.

Equality meant equal, and nothing more

RFC 3151 stated its equivalence rule with unusual bluntness: after the required source normalization, two URNs in the namespace were equivalent if and only if they were lexically identical. No case folding. No owner aliases. No semantic field comparison. No inference that two names pointed at the same target.

The narrowness kept convenient guesses from becoming namespace law. An application could not quietly decide that two spellings, escape styles or owner strings meant the same name just because a local catalog mapped them to one file. Catalog policy was a later layer, and it stayed there.

Nor did identical names make identical content. The RFC allowed a resource to carry more than one public identifier. The reverse problem was just as real: one lexically identical name could meet different catalog stacks, base URIs, filesystems or caches and return different representations. Name equality, mapping equality, byte equality and behavioural equality were four separate tests wearing one word.

Later URI and URN specifications reshaped the broader syntax and registration framework. They supply context for parsers and registries. They do not retroactively change what a 2001 catalog returned, validate an old owner, or promote semantic equivalence into RFC 3151 lexical equivalence.

A URN cannot launder a weak owner

The RFC created no central assignment service for every public identifier. Formal Public Identifiers with registered owner identifiers were required to be unique. Informal identifiers, and FPIs with unregistered owners, might or might not be — and the document asserted no enforcement policy either way.

Persistence was inherited on the same terms. A registered owner generally offered a stronger footing than an informal string, but the namespace covered far too many uses to carry one persistence policy. The IDN scheme, which derived a registered owner identifier from a domain name, inherited at least the persistence weaknesses of domain names.

This matters because the word URN invites a false upgrade narrative. Encoding a weak public identifier does not make its owner durable. Registering an owner does not keep a catalog online. A policy does not prove the issued name was unique in practice. A persistent name does not preserve every representation ever served beneath it.

A resource with no public identifier first needed one created under the applicable rules; only then could the conversion mint its publicid URN. A resource could also carry several public identifiers. Provenance therefore needed an issuance record, an owner policy and an activation time in addition to its characters.

There was never one resolver behind the curtain

RFC 3151 described several ways public identifiers were already being resolved. OASIS catalog files could map a public name to another identifier. A system could map name components onto local pathname components. Software could ship a fixed set of known public identifiers. URI-specific mechanisms such as caches might join in.

This was not one global resolver hiding behind a common prefix. It was a portable name meeting contextual machinery. Catalog order, delegation, rewrite rules, base URIs, local mounts, network access and cache freshness could each decide the outcome.

A catalog match was one receipt: a rule selected a target. Retrieval was another: a file or response returned bytes. Content identity required a digest or an equivalent observation. Parsing required the actual parser, entity policy and version. Application success required yet another observation. Writing resolved=true compressed a whole chain of decisions into a single cheerful conclusion.

The document specified no validation mechanism, and its security section added nothing beyond ordinary URN use and resolution. Neither sentence authenticated an owner, a catalog, a cache or a target. A deterministic encoder could sit happily beside a stale mapping, a substituted local file, a compromised response or a vulnerable parser.

The design insight is that RFC 3151 resisted over-specification. It supplied the smallest shared bridge needed to place established public names in URI fields while leaving existing catalogs and local practice free to continue — the minimum initial specification instinct, decades before anyone gave it that name. Compatibility was the gift. Resolver provenance was the bill.

A flawless name can still open the wrong file

Take an external entity whose normalized public identifier transcribes perfectly. A parser consults the first catalog in its chain, rewrites the name to a local path and opens a file. Every syntax check passes. The file belongs to an old package release. The lexical URN is correct, the mapping is valid under local policy, and the bytes are wrong for the application.

Or a second machine uses the same URN with a different catalog and returns a newer DTD. The names compare equal while the parser behaviour diverges. A cache can preserve an earlier mapping long after the owner changes policy. A built-in resolver can keep succeeding after the network resource disappears. No single one of those observations owns the whole truth.

Running-code primacy does not make the specification optional. The transcription table remains authoritative for whether the URN correctly carries the normalized name. Running behaviour answers the later questions: which resolver ran, which rule matched, which bytes arrived, what the application did with them. Each layer can correct an overclaim made by the layer before it.

The historical achievement was therefore precise and bounded. An old public name could cross into URI architecture without pretending to be a location. But crossing the syntax boundary did not finish the journey to a resource.

RFC 3151 taught the old names to travel. It never claimed they would arrive.

Sources