[opencms-dev] howto create xsd and get it running..?
Tim
tcs777 at gmail.com
Wed Feb 2 16:44:20 CET 2005
Hi,
I try to make my own "article" as described here
http://www.opencms-forum.de/viewtopic.php?t=625
Somehow, I can't get it to work for days! I did exactly as described
by the "tutorial", but I keep getting the folowing error:
Unable to unmarshal XML content definition schema
Requested resource: /system/workplace/editors/simple/editor.jsp
OpenCms version: 6.0 alpha 3 Caladan
OpenCms context: /opencms/opencms
Can someone PLEASE help me..?? Best regards, Tim.
My xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="OpenCms://OpenCms-xmlcontent.xsd"/>
<xsd:element name="items" type="OpenCmsItems"/>
<xsd:complexType name="OpenCmsItems">
<xsd:sequence>
<xsd:element name="item" type="OpenCmsItem" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsItem">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString"/>
</xsd:sequence>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Title" mapto="property:Title" />
</mappings>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
My sample item:
<?xml version="1.0" encoding="UTF-8"?>
<items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="OpenCms://sites/default/xmlcontent/menu.xsd">
<item>
<Title><![CDATA[Sample item]]></Title>
</item>
</items>
More information about the opencms-dev
mailing list