53 ms·
>Consider the case of embedding (composition is better than inheritance) data defined by a second schema inside a first schema. What do you mean by this "data
by pydry 4y ago
>Consider the case of embedding (composition is better than inheritance) data defined by a second schema inside a first schema.
What do you mean by this "data defined by a second schema inside a first schema"? And why is it a good idea?
- dale_glass 4y agoYou have a text document (eg, LibreOffice) which is XML, and want to embed a SVG in it (which is also XML). XML has tools to deal with this situation, where it knows that what's found inside <picture></picture> can be evaluated according to the SVG spec. You also have namespaces, to deal with that a <title> might be a thing both in a text document and a song, and you may need to use both inside the same document without conflicting.