AW: [opencms-dev] OpenCms 6.0 alpha 3 released

Ulrich Rueth lists at rueth.info
Wed Dec 22 18:26:51 CET 2004


Hi Alexander,

I tried the new version using this article.xsd, but it still cannot
unmarshal it when creating a corresponding article. Isn't this what you
meant with "nested XML schemas" (see the "Section" element definition
below)?

Thanks and regards
Ulrich


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
	<xsd:element name="InfoRuethArticles" type="OpenCmsInfoRuethArticles"/>

	<xsd:complexType name="OpenCmsInfoRuethArticles">
		<xsd:sequence>
			<xsd:element name="InfoRuethArticle" type="OpenCmsInfoRuethArticle"
minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OpenCmsInfoRuethArticle">
		<xsd:sequence>
			<xsd:element name="Title" type="OpenCmsString" />
			<xsd:element name="Subtitle" type="OpenCmsString" />
			<xsd:element name="Keywords" type="OpenCmsString"/>
			<xsd:element name="Teaser" type="OpenCmsString"/>
			<xsd:element name="Author" type="OpenCmsString"/>
			<xsd:element name="Date" type="OpenCmsDateTime"/>
			<xsd:element name="Publisher" type="OpenCmsString" use="optional"/>
			<xsd:element name="Copyright" type="OpenCmsString" use="optional"/>
			<xsd:element name="Section" maxOccurs="unbounded">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Text" type="OpenCmsHtml" use="optional"/>
					</xsd:sequence>
					<xsd:attribute name="sectiontitle" type="OpenCmsString"
use="optional"/>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
	</xsd:complexType>


	<xsd:annotation>
		<xsd:appinfo>
			<resourcebundle
name="org.opencms.frontend.templateone.xmlcontentdemo.workplace"/>
			<mappings>
				<mapping element="Title" mapto="property:Title" />
				<mapping element="Date" mapto="attribute:datereleased" />
			</mappings>
			<validationrules>
				<rule element="Title" regex="!.*[Ee]rror.*"
message="${key:editor.errormessage.Article.mustnotcontainerror.1}
${validation:path} ${key:editor.errormessage.Article.mustnotcontainerror.2}"
/>
				<rule element="Title" regex="!.*[Ww]arn.*" type="warning"
message="${key:editor.warning.Article.mustnotcontainwarn.1}
${validation:path} ${key:editor.warning.Article.mustnotcontainwarn.2}"/>
				<rule element="Teaser" regex="!.*[Ww]arn.*" type="warning"
message="${key:editor.warning.Article.mustnotcontainwarn.1}
${validation:path} ${key:editor.warning.Article.mustnotcontainwarn.2}"/>
				<rule element="Text" regex="!.*[Ww]arn.*" type="warning"
message="${key:editor.warning.Article.mustnotcontainwarn.1}
${validation:path} ${key:editor.warning.Article.mustnotcontainwarn.2}"/>
			</validationrules>
			<defaults>
				<default element="Title" value="${key:editor.defaults.Article.Title}"/>
				<default eleemnt="Date" value="${currenttime}"/>
				<default element="Author" value="${currentuser:fullname}"/>
			</defaults>
		</xsd:appinfo>

	</xsd:annotation>
</xsd:schema>



-----Ursprungliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Alexander
Kandzior
Gesendet: Mittwoch, 22. Dezember 2004 13:33
An: 'The OpenCms mailing list'
Betreff: [opencms-dev] OpenCms 6.0 alpha 3 released


Hi all,

OpenCms 6.0 alpha 3 (aka 5.5.4) has been released and is available for
download from the http://www.opencms.org website.

This release adds more features to the XML content, enabling developers to
create powerful XML content definitions, including nested XML schemas.

Also available is support for Java 1.5 and PostgreSQL.

Moreover, the "galleries" (in older releases only available from the MS
Dhtml WYSIWYG editor) have been completly re-written for improved user
productivity, plus they can now also be used as Widgets for XML contents and
are also available in the HtmlArea editor.


In case you try out this 6.0 alpha 3 release, please provide feedback
regarding the new XML content features and the new galleries.

For a full list of features and open issue in this release, please check out
the release notes that come with the download, or have a look at the OpenCms
homepage at http://www.opencms.org.

Any help in developing the OpenCms 6.0 "final" version is greatly
appreciated. The more help we get the sooner we can expect a stable release.
If you want to contribute, please contact me directly, or send a mail to
this mailing list.

Thanks very much to Antonio Core for his contribution of the PostgeSQL
database driver.


Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com




_______________________________________________
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