[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [Q] How should SAX support Namespaces?

  • From: Peter Murray-Rust <peter@u...>
  • To: John Cowan <cowan@l...>,XML Dev <xml-dev@i...>
  • Date: Fri, 24 Jul 1998 23:45:51

Re: [Q] How should SAX support Namespaces?
At 16:37 24/07/98 -0400, John Cowan wrote:
>Peter Murray-Rust wrote:
>
>> [I]f we can find a SEPARATOR which is
>> guaranteed not to occur in a URN  it just makes it a bit easier (this is
>> DavidM's #2 but with something other than COLON). [It never sees the light
>> of day, anyway].
>
>Dagger!  \U2020!  Dagger!
>
>> <?jumbo:namespace ns="http://xml-cml.org" prefix="CML"
>> java="jumbo.cml.%sNode">
>> where localPart (with initial capitalises letter) replaces %s. Thus
>> CML:Molecule is mapped to jumbo.cml.MoleculeNode. When a common mechanism
>> is agreed this PI can be disabled.
>
>The trouble here IMHO is that this mapping is app-specific, not really
>document-specific.  You will want to load various Java classes 
>depending on what you want to *do* to a particular element:
>edit it, render it, translate its content into HTML, ...

I fully agree. This was just a  first pass to illustrate some of the
concerns for namespace processing. As I have said before I'd love to get
consensus on a series of possible behaviours/functions that one might map
elements to. At present I have one main function - JComponent
XNode.getDisplayComponent() which returns a component for embedding into a
SwingSet environment.  But I'm also trying to devise validate(),
processRecursively(), etc.

I am not sure that these are naturally going to arise elsewhere..

[...PMR namespace concerns snipped...]
IT was probably not a good idea to raise concerns of this sort and we
should wait for enlightenment from the W3C.

	P.


Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.