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

  • From: Pete Cordell <petexmldev@c...>
  • To: David Carlisle <davidc@n...>
  • Date: Wed, 4 Jul 2012 16:40:06 +0100

On 4 July 2012 14:00, David Carlisle <davidc@n...> wrote:
> On 04/07/2012 13:39, Rushforth, Peter wrote:
>>
>> I'm guessing that in xml parsers today they would not do much.  What does
>> an xml parser do with xml:base value?
>
>
> In parsers that support xml:base they use it to resolve any relative URI
> specified in SYSTEM entity references. If they also support xinclude they
> presumably use it to resolve references in that case.
>
> Given that a large part of xml _on the web_ is xhtml and that uses href
> rather than xml:href, I still don't think you've provided any use case where
> an application that understood this new xml:href proposal couldn't just as
> simply understand an href attribute.

xml:lang looks a good precedent to me.  I don't think an XML parser
does anything special with it, and it's use could easily be inferred
by calling it simply 'lang' (without the 'xml:' prefix) and a regex on
its value.  But, because it's simple and easy to understand, it's
arguably the most widely used of the XML namespace attributes.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info


[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