[opencms-dev] New structured XML data type
Bastian Ballmann
bastian.ballmann at wiminno.com
Fri Aug 12 14:35:27 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello list,
I am trying to implement some input forms by declaring my own structured
xml content, but I've a little problem.
This is the XSD file content:
<?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="Pressnews" type="OpenCmsPressnews"/>
<xsd:complexType name="OpenCmsPressnews">
<xsd:sequence>
<xsd:element name="Pressnew" type="OpenCmsPressnew" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsPressnew">
<xsd:sequence>
<xsd:element name="titel" type="OpenCmsString" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
And here is the xml file
<?xml version="1.0" encoding="UTF-8"?>
<pressnews xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="opencms://system/modules/europarl/schemas/pressemitteilungen/content.xsd">
<pressnew>
<titel><![CDATA[Sample article 1]]></titel>
</pressnew>
</pressnews>
If I try to save this control file I get the following error:
Unable to unmarshal XML content definition schema.
Reason: Invalid OpenCms content definition XML schema structure:
Element "/xsd:schema/xsd:complexType[2]/xsd:sequence/xsd:element"
attribute "type" value must be "OpenCmsTitel" not "OpenCmsString"
Can anyone point me to my fault? I cannot see what's wrong here...
Am I getting something wrong?
Thanks for help!
Greets
Basti
- --
- ----------------------------------
wilhelm innovative medien gmbh
- ----------------------------------
Büro Wuppertal
Treppenstraße 17
42115 Wuppertal
Tel. 0202 - 37 14 6-0
Fax 0202 - 37 14 6-16
eMail: mailto:info at wiminno.com
- ----------------------------------
Büro Berlin
Dietrich-Bonhoeffer-Straße 13
10407 Berlin
Tel. 030 - 42 08 07-0
Fax 030 - 42 08 07-16
eMail: mailto:berlin at wiminno.com
- ----------------------------------
web: http://www.wiminno.com
Geschäftsführer: Jens Wilhelm
HRB 10018 - Amtsgericht Wuppertal
- ----------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFC/JeP9hQySR6QNdYRAvtDAJoDfWKNdMX4ESKMzTKvF00NUWemzACdGyHD
FYJNKMjmK4OrZtwXwS1PtYM=
=REF0
-----END PGP SIGNATURE-----
More information about the opencms-dev
mailing list