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

  • From: "James Tauber" <jtauber@j...>
  • To: "Simon St.Laurent" <simonstl@s...>, <xml-dev@i...>
  • Date: Thu, 7 Oct 1999 19:18:04 -0400

> To me, it sounds like you could do with some tools for mapping different
> data structures that represent similar underlying data structures to a
> common model.  The problem isn't that XML is too flexible; rather, it's
> that no one has yet built something handy for making "everyone else's
> representation" into "my representation". It doesn't seem like a light
> project, but it doesn't seem impossible, either.

I'm involved in the development of a markup language that is what could be
described as weakly-typed, ie of the form:

<object>
    <property name="type">foo</property>
    <property name="a">bar</property>
    <property name="b">baz</property>
    ...
</object>

I have often thought that it would be useful to have a standard transform
between this and a strongly-typed form:

<foo>
    <a>bar</a>
    <b>baz</b>
</foo>

Fairly simple XSLT for each direction of transform.

Actually, I can think of a handful of simple little XSLT transforms that
might be useful for this sort of thing:

One could turn all elements into <element type="...">...</element>
Another could turn all attributes into child elements
and so on...

James Tauber



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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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