IMHO, rules should never give us less freedom.. Can't it be the exception that confirms the rule ? Do we have to live without a _() documentation just for historical reasons ? Maybe we can break rules for one time.. What will happen if we add _.xml ?

file names are created from xml node IDs


some tools do not like '_' in node IDs, thats why we use '-' instead

and while _.xml and -.xml are valid filenames i'm not sure about
'-' being a valid node ID

XML spec:


| Validity constraint: ID
|
| Values of type ID must match the Name production. [...]

The Name production:

Letter   ::= BaseChar | Ideographic
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
             CombiningChar | Extender
Name     ::= (Letter | '_' | ':') (NameChar)*

I am not going to copy BaseChar and Ideographic here... I assume from this spec that the XML spec does not allow us to have '-' as the first char of an ID. Unless '-' is part of BaseChar or Ideographic... It is not easy to find this out from the spec (these two have an ugly definition).

Goba

Reply via email to