[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: Partyin' like it's 1999
- To: <srodriguez142857@y...>,"xml-dev OASIS" <xml-dev@l...>
- Subject: RE: Partyin' like it's 1999
- From: "Joshua Allen" <joshuaa@m...>
- Date: Sat, 30 Oct 2004 10:36:02 -0700
- Thread-index: AcS+ogflWfLqEu4wQAeo+fGeoQcUKwABHOeg
- Thread-topic: Partyin' like it's 1999
Almost correct. However, think of it like
this:
<a:foobar xmlns:a=”http://tempuri.org/” />
<a:bar xmlns:a=”http://tempuri.org/foo”
/>
If you just concatenate, you have http://tempuri.org/foobar in both cases. However,
XML namespaces spec treats these as two different names:
{http://tempuri.org/}foobar
{http://tempuri.org/foo}bar
From: Sergio J.
Rodriguez M. [mailto:srodriguez142857@y...]
Sent: Saturday, October 30, 2004
10:01 AM
To: Joshua Allen; xml-dev OASIS
Subject: RE: Partyin'
like it's 1999
Thanks for your clarification. But then, how an XML
Namespaces-aware parser should process (considered) the QName, if is not
produced by concatenation of the URI and the local part?
According to the XML Namespace spec, in the section 3 (Qualified
Names): "Note that the prefix functions only
as a placeholder for a namespace name. Applications should use the namespace
name, not the prefix, in constructing names whose scope extends beyond the
containing document."
I understand that the namespace name is the URI, right? ... so,
I guess that the parser must identify a QName as: URI +
"local_part", i. e., by concatenation.
Sergio Rodríguez.
Joshua Allen
<joshuaa@m...> wrote:
Actually, RDF does *not* use namespaces like you are thinking.
RDF has the concept of using a prefix as “convenient
shorthand” for a URI, but it is done in a way that is incompatible with
namespaces in XML. In RDF, the fully-qualified term is evaluated by
concatenating the URI and term, where in xml namespaces the qname is never considered
to be produced by concatenation. This subtle difference can be incredibly
confusing for people.
From: Sergio J.
Rodriguez M. [mailto:srodriguez142857@y...]
Sent: Wednesday, October 27, 2004
7:34 PM
To: xml-dev@l...
Subject: RE: Partyin' like
it's 1999
If Namespaces are in fact a disaster, then why is widely used in any
XML Vocabulary, like RDF or OWL?
If these are a disaster, then the basis of the Semantic Web -OWL,
RDF-, and many other systems are in big trouble...
Saludos cordiales,
Sergio J. Rodríguez M.
Do You Yahoo!?
http://net.yahoo.com.mx:
La mejor conexión a internet y 25MB extra a tu correo por http://net.yahoo.com.mx/.
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|