[rfc-i] colons in anchors

Julian Reschke julian.reschke at gmx.de
Tue Jan 20 02:58:59 PST 2015


On 2015-01-20 10:42, Miek Gieben wrote:
> [ Quoting <julian.reschke at gmx.de> in "Re: [rfc-i] colons in anchors..." ]
>>>  error: value of attribute "anchor" is invalid; must be an XML name
>>> without colons
>>>
>>> Note that the xml2rfc v2 processor happily accepts colons in anchors.
>>
>> If it does so in validating mode it's buggy.
>
> Don't know.... as I never used that. I'm pretty sure I can submit a draft
> right now which uses colons in anchors, in that respect I regard this a
> non backwards compatible change. We should either say something about this

You can submit all kinds of garbage, in particular with the old TCL 
processor. That doesn't make it valid.

> in the xml2rfc v3 draft, or change it to allow it.

The anchor is an XML name, and this is what the XML spec says about them 
in <http://www.w3.org/TR/2008/REC-xml-20081126/#sec-common-syn>:

> Note:
>
> The Namespaces in XML Recommendation [XML Names] assigns a meaning to names containing colon characters. Therefore, authors should not use the colon in XML names except for namespace purposes, but XML processors must accept the colon as a name character.

Anyway, this is not a change. It was defined like this forever.

Best regards, Julian





More information about the rfc-interest mailing list