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

Hartmann, Waehrisch & Feykes GmbH hartmann at waehrisch-feykes.de
Wed Nov 17 13:37:04 CET 2004


Hi Jorge,

your types have to be named with the prefix "OpenCms", i.e.
"OpenCmsDestinations" and "OpenCmsDestination".
This is hardcoded in org.opencms.xml.CmsXmlContentDefinition
but definitely should be changed.

Regards,
Stephan

----- Original Message -----
From: "Jorge González" <informatico at hotelparadisepark.com>
To: "'The OpenCms mailing list'" <opencms-dev at opencms.org>
Sent: Wednesday, November 17, 2004 12:23 PM
Subject: RE: [opencms-dev] XML Structured Content in alpha 2 and HEAD


> 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.
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list