[opencms-dev] XML Structured Content in alpha 2 and HEAD

Jorge González informatico at hotelparadisepark.com
Wed Nov 17 12:23:16 CET 2004


I've looked into the xmlcontent project.

Well, i've created a test module, and a test project.

I've copied the tags (showed here) in opencms-modules.xml

--------------
<resourcetypes>
  <type class="org.opencms.file.types.CmsResourceTypeXmlContent">
    <param name="resource.type.id">50</param>
    <param name="resource.type.name">test</param>
    <param name="schema">/sites/default/test/test.xsd</param>
  </type>
</resourcetypes>


<explorertypes>
  <explorertype name="test" key="fileicon.test" icon="article.gif"
reference="xmlcontent">
    <newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=test" order="25"/>
    <accesscontrol>
      <accessentry principal="GROUP.Administrators" permissions="+r+v+w+c"/>
      <accessentry principal="GROUP.Projectmanagers"
permissions="+r+v+w+c"/>
      <accessentry principal="GROUP.Users" permissions="+r+v+w+c"/>
    </accesscontrol>
  </explorertype>
</explorertypes>
----------------

My file (test.xsd) located in /sites/default/test/ is this

----------------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
	<xsd:element name="destinations" type="Destinations"/>

	<xsd:complexType name="Destinations">
		<xsd:sequence>
			<xsd:element name="destination" type="Destination" minOccurs="0"
maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="Destination">
		<xsd:sequence>
			<xsd:element name="Name" type="OpenCmsString" />
			<xsd:element name="Slogan" type="OpenCmsString" />
			<xsd:element name="Description" type="OpenCmsString" />
		</xsd:sequence>
		<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
	</xsd:complexType>
</xsd:schema>
----------------

As you can see, nothing special.


My problem is,

When i create a "new" test content using the wand, the file name chooser
pops up, i select the test xml content and insert a new name, but NO FILE IS
GENERATED.

Tracing all the logs, there are workplace resource boundle warnings, and
lastly this message:

17 nov 2004 11:19:06,378 DEBUG [encms.xml.CmsXmlEntityResolver: 308] Xml
entity resolver uncached offline:/sites/default/test/test.xsd

Thanks for reading.
Jorge.




More information about the opencms-dev mailing list