Does Spring DM Blueprint RI support custom elements in Blueprint context?

See my post in springsource forum

 

Summary Note:

Andy: If this is to work I'm pretty sure you need a schema that blueprint can find - at least that's the way it works in Spring DM. If you look at the Blueprint schema it has this: <xsd:any namespace="##other" processContents="strict"/>

kmshi_array: Yea, so I wonder why "myns:dateformat" or "osgix:cm-properties" in blueprint context (the xml file was under OSGI-INF/blueprint) did not work, but they worked in beans context(the file was put at META-INF/spring), in my test, the 2 xml files were in same bundle, and my env was 2.0.0.M2-SNAPSHOT mainline.

Costin:This comes back to the way validation is performed. By using beans you have used spring-beans.xsd as your main schema which does not require strict validation of the imported declarations (the same should apply if you use spring dm schema).
You can double check this by looking at the xsd declarations or by opening them inside a rich ID which is XML aware since usually they offer a solution as well (such as importing the missing schemas).

 

posted on 2009-11-06 10:13  MobileLab  阅读(284)  评论(0编辑  收藏  举报

导航