Robert B.: Leerzeichen in URL bei XHTML

Beitrag lesen

Hallo Michael,

Aber gerade das steht doch gleich im ersten Satz: "Before the value of an attribute is passed to the application or checked for validity, the XML processor MUST normalize the attribute value by applying the algorithm below"

Und deshalb war mein Verständnis, dass im lexical space die Leerzeichen immer percent-encoded vorliegen (zumindest bei XHTML). Und normalized in Abhängigkeit von CDATA.

Die „Prozent-Kodierung“ wird allerdings im URI-Kontext verwendet und nicht im X(HT)ML-Kontext. Bei X(HT)ML wäre es   – wenn das Leerzeichen nicht auch als solches schon verwendet würde.

Viele Grüße
Robert