OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Revised namespaces draft available

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Murray-Rust <peter@ursus.demon.co.uk>
  • To: XML Dev <xml-dev@ic.ac.uk>
  • Date: Tue, 04 Aug 1998 21:22:35

At 14:52 04/08/98 -0400, John Cowan wrote:
>Peter Murray-Rust wrote:
>>         - collate experience from those who have actually implemented
>> (somewhere in the 1997..1998-05 period). For example I discovered while
>> browsing XML4J today that it has considerable namespace support, and I'm
>> sure there are other tools (I'm happy to make the latest JUMBO2 available
>> shortly - it has a simple namespace approach).
>Well, as author of NamespaceFilter (which now bites the dust), I suppose

Lots of things bite the dust - chunks of JUMBO2 have as well and I suspect

>I count as a namespace implementor.  I foresee no difficulties in
>rewriting my code to meet the new draft (and at the same time adding
>general support for inherited attributes, which I had wanted to do
>as a ParserFilter anyway).  The new version will be less efficient,
>since every startElement event will have to have its attributes
>searched to see if a new xmlns:* attribute appears.

Since namespaces are so fundamental I think it's very important that we
outline the various ways forward. AIUI your filter sits on top of SAX
whereas I suspect others (including at least myself privately) want SAX to
do as much as possible. We don't want these to be incompatible.

>I would point out that people who use default or FIXED values of
>xmlns:* attributes would be well advised to put them in the
>internal subset, since non-validating parsers may not see them

This isn't much fun. It would be a very easy mistake to make. Can we
package the NS stuff in a single file and do something like:

<!DOCTYPE ABC SYSTEM "abc.dtd" [
<!ENTITY % namespace1 SYSTEM "namespace1.ent">
<!ENTITY % namespace2 SYSTEM "namespace2.ent">

This makes sure it gets included. You can also include namespace1.ent in
the external subset - it will get ignored if already declared in the
internal subset.

>>                 - IBTWSH
>IBTWSH is non-namespace rather than single-namespace.

	My point was that if I use it in (say) VHG - as I intend to - it has to
acquire a namespace. Thus:

<VHG:termEntry xmlns:VHG="urn:vhg.co.uk:schema"> <!-- please tell me if
this is wrong -->
  <VHG:term xml:lang="en" xmlns:xml="http://w3.org">XYZZY</VHG:term>
    <IB:P xmlns:IB="http://john.cowan.some.where">A magic word</IB:P>

unless you intend that it should always have the null namespace xmlns="". I
wouldn't think that a good idea.


>John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
>	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
>	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
>		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)
>xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
>Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
>To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
>(un)subscribe xml-dev
>To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
>subscribe xml-dev-digest
>List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS