[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • To: xml-dev@l...
  • Date: Tue, 19 Feb 2008 09:18:25 +0530

Thanks Mike, for useful suggestions ... It helps me ...

On Feb 19, 2008 4:22 AM, Michael Kay <mike@s...> wrote:
> > I need a 1-to-1 mapping between file system directory/file
> > names and XML names. I am generating a meta data (the XML
> > output) to be used by another tool (which physically
> > sees/processes the directories/files and consults the XML
> > meta data for some processing).
>
> You don't need it, you want it.
>
> Generally it's best if element and attribute names are names of types, not
> of instances. If you've got 23 files in a directory you want to represent
> that with 23 <file> elements containing different data, not with 23 elements
> having different element names. The limitations on choice of characters in
> element names are only one of the reasons for preferring this design.
>
>
> Michael Kay
> http://www.saxonica.com/



-- 
Regards,
Mukul Gandhi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member