ssume you have a content type name content-type.MyContentType in plugin my-plugin, it extends content-type.MyInheritedContentType1 from plugin my-plugin and content-type.MyInheritedContentType2 from plugin my-plugin-inherit.
We get this list of possible source URIs (without Web, more complete with web plugin):
- content://WEB-INF/param/content-types/my-plugin/stylesheets/MyContentType/MyContentType-main.xsl
- content://WEB-INF/param/content-types/my-plugin/stylesheets/MyContentType/MyContentType.xsl
- plugin:my-plugin://stylesheets/MyContentType/MyContentType-main.xsl
- plugin:my-plugin://stylesheets/MyContentType/MyContentType.xsl
- content://WEB-INF/param/content-types/my-plugin/stylesheets/content-type.MyInheritedContentType1/content-type.MyInheritedContentType1-main.xsl
- content://WEB-INF/param/content-types/my-plugin/stylesheets/content-type.MyInheritedContentType1/content-type.MyInheritedContentType1.xsl
- plugin:my-plugin://stylesheets/content-type.MyInheritedContentType1-main.xsl
- plugin:my-plugin://stylesheets/content-type.MyInheritedContentType1.xsl
- content://WEB-INF/param/content-types/my-plugin-inherit/stylesheets/content-type.MyInheritedContentType2/content-type.MyInheritedContentType2-main.xsl
- content://WEB-INF/param/content-types/my-plugin-inherit/stylesheets/content-type.MyInheritedContentType2/content-type.MyInheritedContentType2.xsl
- plugin:my-plugin-inherit://stylesheets/content-type.MyInheritedContentType2-main.xsl
plugin:my-plugin-inherit://stylesheets/content-type.MyInheritedContentType2.xsl - plugin:my-plugin://stylesheets/default-content.xsl,
plugin:cms://stylesheets/default-content.xsl, - cocoon://_plugins/cms/default-content/html-main.xsl
We can see that first content type is called with it alias, and the inherit content types are called with their complete name. So if a content type has contents as final type and other as inherit type, we have to declare two stylesheets at least.