Re: Question on _()

From: Date: Fri, 17 Oct 2003 12:21:06 +0000
Subject: Re: Question on _()
References: 1 2 3 4 5 6  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356635@lists.php.net to get a copy of this message
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

« previous php.doc (#969356635) next »