[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • To: xml-dev@l...
  • Date: Sat, 16 Feb 2008 18:54:25 +0530

On Feb 16, 2008 2:20 PM, Michael Kay <mike@s...> wrote:
>I have always dreamed that there would be a
> day when programming languages were able to use symbols like the
> multiplication and division signs with their intended meanings, rather than
> using ASCII approximations. Treating such symbols as names seems to rule
> this out for ever. Or if you decide that they are needed in names, then you
> should allow ASCII punctuation characters such as "+" and "*" in names too,
> with a suitable escape convention.

I think, we should not force in the spec, that arithmetic symbols like
+, * etc are disallowed in XML names. For e.g., somebody might want to
write a XML like,

<+>
  <add>
    <!-- some more markup -->
  </add>
</+>

i.e., for convenience, I might like to use +, -, * etc as part of XML names.

Certainly, some special characters being part of XML names, should be
written with escape sequences.

One more point I wish to add ... Sometimes, I thought allowing 1st
character as numeric in XML names is good (which is currently
prohibited). Once, I needed to convert the directory structure in
filesystem to a corresponding XML hierarchy. Some of the folder names
began with [0-9]. Then it was a bit of inconvenience.

We should surely debate the cost and benefits of this.


-- 
Regards,
Mukul Gandhi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member