Andrey Bushman
Andrey Bushman

Reputation: 12506

XSD for XML with attributes Name, NameRus, NameEnu, NameDeu, e.t.c

I show my question on real example (Autodesk company). Exists some PackageContents.xml file. But developers created a strange solution for problem with localization in it... Look this page - it is description for attributes of 'ApplicationPackage' element. Look, some attributes has such description:

A localized [attribute name] can be specified by combining [attribute name] with a locale code. See Supported Locale Codes for a full list of supported locale codes.

Pay attention - there the fixed set of localizations. i.e., for example, element simultaneously can to have such attributes: Name, NameRus, NameEnu, NameDeu, e.t.c.

Can I write XSD schema for such PackageContents.xml, but without fixed localization names?

Thank you.

Upvotes: 0

Views: 78

Answers (1)

Michael Kay
Michael Kay

Reputation: 163352

No, you can't.

It's very easy for imaginative and creative people to find ways of using XML that were never envisaged by the designers of XSD. Doing so is usually a bad idea.

Upvotes: 1

Related Questions