[
Lists Home |
Date Index |
Thread Index
]
- To: <xml-dev@lists.xml.org>
- Subject: Prefixes / URIs consistency (was: There is a meaning, but it's not in the data alone)
- From: "Manos Batsis" <m.batsis@bsnet.gr>
- Date: Wed, 30 Jan 2002 12:56:22 +0200
- Thread-index: AcGpbrs42pXSPD8LTRGtWuKGOiIT3QAC9RIg
- Thread-topic: Prefixes / URIs consistency (was: There is a meaning, but it's not in the data alone)
> -----Original Message-----
> From: Sean McGrath [mailto:sean.mcgrath@propylon.com]
>
> >[Gavin Thomas Nicol]
> >Yep. I still believe that local processing always wins. From a
> >practical perspective, the namespace prefix is usually a lot more
> >useful than the namespace itself.
>
> And its positively *scary* the number of apps out there in
> the real world
> that have wired the processing to the prefix - not the fully qualified
> name.
XML processing happens is mostly performed by DOM, SAX and XSLT.
XSLT processes namespaces after expanding them, so I anticipate this as
a DOM issue. Indeed after checking [1] one can read the following:
"In particular, since the mapping between prefixes and namespace URIs is
not enforced, in general, the resulting document cannot be serialized
naively. For example, applications may have to declare every namespace
in use when serializing a document."
[1]
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#Namesp
aces-Considerations
I was wondering how efficient SAX usage is in keeping consistency
between prefixes (meaning in practice) and their associated URIs,
unfortunately I have spend little time using it.
Manos
|