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

RE: a useful naming convention

  • To: 'Bryan Rasmussen' <bry@i...>
  • Subject: RE: a useful naming convention
  • From: Barwell Jonathan <Jonathan.Barwell@a...>
  • Date: Tue, 2 Aug 2005 09:08:03 +0100
  • Cc: xml-dev@l...
  • Return-receipt-to: Barwell Jonathan <Jonathan.Barwell@a...>

jonathan barwell
Title: RE: a useful naming convention

Example

<Root>
  <Atag>
    <btag/>
    <ctag/>
  </Atag>
</Root>

<btag> evolves and needs to change to become a complex element.  Do you rename <btag> to <Btag> because it is now a complex structure, or keep it lower case?

<Root>
  <Atag>
    <btag>
      <dtag/>
    </btag>
    <ctag/>
  </Atag>
</Root>

Even worse what if <btag> needs to incorporate a complex structure.  Now <btag> includes upper case elements.

<Root>
  <Atag>
    <btag>
      <Dtag>
         <etag/>
         <ftag/>
      </Dtag>
    </btag>
    <ctag/>
  </Atag>
</Root>

Either way <btag> becomes inconsistant with the naming convention.

--
Jon Barwell

-----Original Message-----
From: Bryan Rasmussen [mailto:bry@i...]
Sent: 02 August 2005 08:57
To: Barwell Jonathan
Cc: xml-dev@l...
Subject: RE: a useful naming convention





Citat Barwell Jonathan <Jonathan.Barwell@a...>:

> The one big problem I can see with this is that if you subsequently
> want to restructure your schema, e.g. a simple tag needs complex
> structure, then you not only have to restructure but you have to
> rename the tags as well.  This will look nice to start with but after
> a couple of evolutions there will be Upper and Lower case tags all
> over the place.
>


Do you mean that your upper and lower case tags will not be sorted properly in your schema?




--
Bryan Rasmussen

************************************************************************

DISCLAIMER

The information contained in this e-mail is confidential and is intended

for the recipient only.

If you have received it in error, please notify us immediately by reply

e-mail and then delete it from your system. Please do not copy it or

use it for any other purposes, or disclose the content of the e-mail

to any other person or store or copy the information in any medium.

The views contained in this e-mail are those of the author and not

necessarily those of Admenta UK Group.

************************************************************************


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.