From: Colin T. <col...@co...> - 2005-05-25 15:49:46
|
I like option 3, and storing the namespace prefix, presumably separate from the rest of the element name... Isn't the SAX parsing a problem for option 2 too? If I'm understanding what you're saying, parsing (on import?) might not provide the namespace, so it won't get the URI either will it? In the example you quoted, is the element name being stored as imsmd:record? That suggests a problem in parsing i.e. it doesn't understand what a prefix is (unless it's a quirky Bodington way to store the prefixes). Colin > -----Original Message----- > From: bod...@li... > [mailto:bod...@li...]On Behalf Of > Peter Crowther > Sent: 25 May 2005 15:54 > To: bod...@li... > Subject: RE: [Bodington-developers] XML Repository and namespace > prefixes > > > > From: Adam Marshall > > | From: [...] Peter Crowther > [...] > > | The next simplest is to store the namespace URI with each row in > > | xml_elements and xml_attributes. Cheap'n'cheerful, full-fidelity > > | reconstruction, works with any SAX2 parser, but expensive > > on disk space. > > > > Thumb goes up. Surely a namespaces table: > > > > String | integer > > > > With the addition of a single int column the each xml element > > and attr row wouldn't be too bad?? > > That's nearer to option 3 - storing the mapping - rather than > option 2, > although it could be done. > > > Is this necessary - do we need to actually store the > > namespace prefix in Bod? > > No, although it's worth storing what was the base namespace. > > > Couldnt we just make up something from the URI? Ugly but works > > perfectly? After all who's going to be hand editing our > exported XML? > > Based on past experience... more people than you would > expect. Far more > people appear to edit XML by hand than edit HTML by hand, and > you still > see plenty of 'created using Notepad' riders on Web sites. > > > Surely when we move to VFS in X years time this will be > taken care of? > > There's been some determined opposition to going that way - > some of that > opposition has been visible on this mailing list and its predecessor. > The system incorporating the VFS no longer even carries the Bodington > family name due to this opposition. X may be small, large or > infinite; > I have no knowledge about its value, and hence cannot plan > assuming any > particular value. Do you have knowledge I'm missing? > > - Peter > > > ------------------------------------------------------- > SF.Net email is sponsored by: GoToMeeting - the easiest way > to collaborate > online with coworkers and clients while avoiding the high > cost of travel and > communications. There is no equipment to buy and you can meet > as often as > you want. Try it > free.http://ads.osdn.com/?ad_idt02&alloc_id135&op=ick > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers > |