[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] The purpose of a namespace URI is ...
- From: David Carlisle <davidc@nag.co.uk>
- To: xml-dev@lists.xml.org
- Date: Fri, 30 Nov 2012 17:12:20 +0000
On 30/11/2012 16:40, Costello, Roger L. wrote:
> Hello David,
>
>> The local part in that case is not referring to markup or an XML
>> vocabulary at all, it is just the identifier of an error, the identifier
>> is almost never used in XML markup.
>
> So,
>
> {http://www.w3.org/2005/xqt-errors} FOER0001
> {http://www.w3.org/2005/xqt-errors} FOER0002
> {http://www.w3.org/2005/xqt-errors} FOER0003
> ...
>
> is not an XML vocabulary but,
>
> {http://www.bookstore.org}BookStore
> {http://www.bookstore.org}Book
> {http://www.bookstore.org}Author
> ...
>
> is an XML vocabulary?
>
> Why?
>
> What distinguishes them that allows me to know this?
Nothing. Both are just a list of names. If you happen to know from some
information that someone has defined an XML vocabulary using the second
list as element names, that is additional information that you have (but
I didn;t have until you just told me)
>
> So the first set of xs:QNames is not an XML vocabulary but the second set of xs:QNames is an XML vocabulary?
>
> Why?
>
> I thought that -- by definition -- an XML vocabulary is a set of xs:QNames, where each local part has the same namespace URI part.
>
Well if you introduce the term you get to define it how you like. I
don't think there is a standard definition of "XML vocabulary" but I
would have expected it to describe a set of XML documents.
(For natural language "vocabulary" might arguably be a list of names
separate from grammar but that isn't how it is normally used for xml I
think)
So some XML documents are in the docbook XML vocabulary, some are XHTML,
some are MathML. However the term is applied to natural languages where
sometimes it means a word list as opposed to grammar in the case of XML
I think most definitions of "vocabulary" do involve a
grammar component. (Although that component is never identified by a
namespace which is why different versions of xhtml or xslt can share
namespace.
> No?
>
> /Roger
>
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]