Subject: Re: (dsssl) Attributes to Elements From: jany.quintard@xxxxxxxxxx Date: Tue, 12 Jun 2001 16:46:08 +0200 (CEST) |
On 12 Jun 2001 skvenkat@xxxxxxx wrote: > Hi, > > In the XML backend, I would like to transform all attributes to elements, > e.g., > > <foo day="12" month="June" year="2001">Hello</foo> > to > <foo><foo-attributes><day>12</day><month>June</month><year>2001</year> > </foo-attributes>Hello</foo>. The ident transformation by james Clark seems to be a good starting point. > which leads to the general question: > why they didn't get rid of attributes while designing XML itself?! I do not know. Probably they thought it was nice to have attributes (and indeed, it is nice, even in XML). The choice between elements and attributes is a very frequently asked question. See : http://www.oasis-open.org/cover/elementsAndAttrs.html Jany Any views or opinions expressed are solely those of the author and do not necessarily represent those of IBM. ------------------------------------------------------------------------ Jany Quintard | Who is this "General Failure" IBM Paris Laboratory | and why is he writing Application & Integration Middleware Division | on my disk? DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
(dsssl) Attributes to Elements, skvenkat | Thread | RE: (dsssl) Attributes to Elements, Mason, James David ( |
(dsssl) Attributes to Elements, skvenkat | Date | (dsssl) Enable active ULINK in pdf, Markus Fix |
Month |