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

  • From: John Cowan <cowan@m...>
  • To: Andrew Welch <andrew.j.welch@g...>
  • Date: Fri, 30 Sep 2011 11:11:48 -0400

Andrew Welch scripsit:

> If the prefix-as-the-namespace caught on, you could envisage parsers
> falling back to using the prefix as the namespace where there is no
> existing mapping, making the xmlns optional.

TagSoup (which is about HTML parsing, not XML parsing), does something
like this: if it can't find a prefix declaration for "foo:", it
generates a mapping from "foo:' to "urn:x-prefix:foo".

(Currently it always does this, as it ignores namespace declarations.
That'll be changed in the next version.)

-- 
Work hard,                                      John Cowan
play hard,                                      cowan@c...
die young,                                      http://www.ccil.org/~cowan
rot quickly.


[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