Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Question about XML Catalog Contributions

Does anyone know if there is a way to take document version into consideration when registering a schema for a namespace?

Java Persistence uses the same namespace for all versions of their documents, and so it seems only possible to register the latest version of the schema for validation for that namespace, and documents such as:

<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="1.0"
   xmlns="http://java.sun.com/xml/ns/persistence/orm";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
</entity-mappings>

show up as invalid since the version does not match the fixed value of "2.0" required by the latest version of the schema. (Also, any new elements or attributes for 2.0 would show up as valid, even if not valid for 1.0.)

--
Paul Fullbright
Eclipse Java Persistence Tools (Dali) Development
Oracle



Back to the top